Hi there,
Im having an issue with my temp probe. Im getting no reading on the LCD display and when i run the test program for the temp probe the serial monitor just keeps outputing jibberish characters , they keep repeating so im assuming this is the test program trying to repeatedly output the temp . if i leave the probe disconnected and run the test programe then it ouputs 'No probe connected' as exepected.
I have tried a second probe and the test program result is the same. I have verified the pins on the jack to the header and verified the pull up resistor is 4.7K
The rest of the build works fine, bluetooth,pushbutton,LCD, DRV8825_HW203 PCB with firmwire version 2.71
Would anybody have any ideas of whats wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Lenny
Please use the windows app to connect to the focuser. Ensure logging is enabled. Connect if you can, try to get temp, if it fails ok, send me the logging file,
Please use the latest windows app uploaded just now, and firmware 273 which has just been uploaded.
Regards
Robert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Robert,
Thank you for the reply, I cant get version 2.73 or 2.72 to connect with bluetooth, 2.71 is the only version that will connect for me. I have attched the log file it will include the error connecting with bluetooth on verison 2.73 and it will have the result frm the get Temp command using sw version 2.71.
I am using the latest window app on windows 10.
Kind Regards,
Lenny.
Bluetooth
Did you enable bluetooth in the firmware before programming the controller?
Line 61
In myFocuserPro2 Extrasettings, did you set the delay on connect to 3s and the delay serial read timeout to 8s
Make sure you are using 9600 as the baud rate speed.
Temperature
This is v271
7/10/2018 12:04:02 PM: ReceiveString: Command retcmd = Z
7/10/2018 12:04:02 PM: ReceiveString: Buffer recbuf = Z20.000#
7/10/2018 12:04:02 PM: ReceiveString: Value retstr = 20.000
7/10/2018 12:04:02 PM: ReceiveString last temp reading was 0
7/10/2018 12:04:02 PM: ReceiveString raw response for Temperature was: Z20.000#
7/10/2018 12:04:02 PM: ReceiveString new temp reading was 20
7/10/2018 12:04:02 PM: ReceiveString Before Rounding TempOffsetVal: = 0
7/10/2018 12:04:02 PM: ReceiveString After Rounding TempOffsetVal: = 0
7/10/2018 12:04:02 PM: ReceiveString tempval adjusted:20
7/10/2018 12:04:02 PM: Change in temperature from previous reading = 20
working fine
and again at
7/10/2018 12:04:26 PM: ReceiveString: Command retcmd = Z
7/10/2018 12:04:26 PM: ReceiveString: Buffer recbuf = Z20.000#
7/10/2018 12:04:26 PM: ReceiveString: Value retstr = 20.000
7/10/2018 12:04:26 PM: ReceiveString last temp reading was 20
7/10/2018 12:04:26 PM: ReceiveString raw response for Temperature was: Z20.000#
7/10/2018 12:04:26 PM: ReceiveString new temp reading was 20
7/10/2018 12:04:26 PM: ReceiveString Before Rounding TempOffsetVal: = 0
7/10/2018 12:04:26 PM: ReceiveString After Rounding TempOffsetVal: = 0
7/10/2018 12:04:26 PM: ReceiveString tempval adjusted:20
7/10/2018 12:04:26 PM: Change in temperature from previous reading = 0
Nothing strange there at all, it returned 20 degrees
and again
7/10/2018 12:10:34 PM: ReceiveString: Command retcmd = Z
7/10/2018 12:10:34 PM: ReceiveString: Buffer recbuf = Z20.000#
7/10/2018 12:10:34 PM: ReceiveString: Value retstr = 20.000
7/10/2018 12:10:34 PM: ReceiveString last temp reading was 0
7/10/2018 12:10:34 PM: ReceiveString raw response for Temperature was: Z20.000#
7/10/2018 12:10:34 PM: ReceiveString new temp reading was 20
7/10/2018 12:10:34 PM: ReceiveString Before Rounding TempOffsetVal: = 0
7/10/2018 12:10:34 PM: ReceiveString After Rounding TempOffsetVal: = 0
7/10/2018 12:10:34 PM: ReceiveString tempval adjusted:20
Still the same, indicating no issue
The temperature is being returned at 20.0 all the time. This means either the temperature probe is not connected, not being recognized, or the wiring is wrong. The temperature probe has 3 wires, yellow goes to SIG which is D2, Red to 5v and Black to GND. There is a 4.7K resistor from D2 to 5V.
1. Check the wiring
2. Check that your resistor is 4.7K
I understand you have run the DS18B20Probe.ino program and it outputs to the serial monitor that the probe is not found. This points to a wiring issue.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks Robert i did enable bluetooth but i never set the delay i will go back and double check that
as for the probe issue when i run the temp test i get the output shown in the attached image and with no probe connected i get no probe obviously the wiring of the probe is good and the pins meter out ok the resistor measures at 4.65kohm
its the output in the attached image that makes me think that there is a response its just not decoded? correctly
Robert,
Just on the bluetooth conection with verison 2.73 i cannot get it to connect no matter what i set the delay and serial read time out too. I have attched both sketches im using. I can only seem to connect with 2.71.
I have looked at and compared code for bluetooth (line by line) between both versions - it is identical - the bluetooth code was unaltered from many versions ago so I am at a loss to explain why it is not working for you,
I see from the logfile that you had successful connections with COM4 and COM5 for v271. I assume you had the serial port on one of those and the BT on another?
If using bluetooth you should ensure there is no usb cable between the computer and focuser before trying to connect.
What is the output of the BlueTooth.ino test program? (need to have usb cable connected) - it expects you to type data which should be echoed back
Last edit: brownrb 2018-07-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I cant get the bluetooth test program to work but im not sure if im using it right . I connect to port 5 on the serial monitor which is my bluetooth port i can see that the device is connected in the bluetooth settings but when i type and send nothing appears on the monitor.
I cant explain why 273 dosent work either comparing the logging it seems to connect ok and sends the 02 query but seens to immediatly time out waiting on the response, where 271 gets the response.
I will go over all the hardware again and make sure i havent missed something
Thanks for the help!
Lenny
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Lenny
If you cannot connect with the test program then there is a real issue.
Most problems occur around the RXD and TXD lines for the HC05 device. RXD to the BT device must be through a resistor divider to drop the voltage down to around 3.3V. TXD from the BT device back to RXD on the Arduino is ok, no resistors needed,
These are the connections
// EN/CMD // do not connect
// RX to middle of 2K and 1K resistor - other end of 2K resistor to D11 and other end of 1K resistor to ground
// TX to D10
// STATE // do not connect
Of course you still need to connect VCC and GND
I have attached schematic.
Now, another user had a problem - here is their reply below
//----------------------------
Thanks for all your help! Finally I managed to connect to the Arduino using Bluetooth. I had to play around quite some time but I think in the end the settings of my computer were wrong.
For all users using the original HC_05 Bluetooth module HC_05 here some hints how to establish a connection:
D10 of the Arduino has to be connected to TX of the HC_05
D11 has to be connected to a voltage divider so eg a 1k Resistor followed by a 2.2k Resistor going to GND. There where both resistors come together, connect this point with RX of the HC_05.
I had to program the HC05 first. To program the HC_05 connect D9 of the Arduino to Pin 34 (PIO11) of the HC_05 and set it to HIGH. Then I connect to BT com port using Arduin IDE Serial port monitor. Then I send these commands belowto BT device using the serial monitor .
If you are familiar to AT commands the right settings would be
AT+ROLE=0 // slave role
AT+UART=9600,0,0 // Set the Baudrate
AT+INIT // Initalize the SPP profile lib
AT+PSWD=1234 // Set the pairing password
Hi there,
Im having an issue with my temp probe. Im getting no reading on the LCD display and when i run the test program for the temp probe the serial monitor just keeps outputing jibberish characters , they keep repeating so im assuming this is the test program trying to repeatedly output the temp . if i leave the probe disconnected and run the test programe then it ouputs 'No probe connected' as exepected.
I have tried a second probe and the test program result is the same. I have verified the pins on the jack to the header and verified the pull up resistor is 4.7K
The rest of the build works fine, bluetooth,pushbutton,LCD, DRV8825_HW203 PCB with firmwire version 2.71
Would anybody have any ideas of whats wrong?
Hi Lenny
Please use the windows app to connect to the focuser. Ensure logging is enabled. Connect if you can, try to get temp, if it fails ok, send me the logging file,
Please use the latest windows app uploaded just now, and firmware 273 which has just been uploaded.
Regards
Robert
Hi Robert,
Thank you for the reply, I cant get version 2.73 or 2.72 to connect with bluetooth, 2.71 is the only version that will connect for me. I have attched the log file it will include the error connecting with bluetooth on verison 2.73 and it will have the result frm the get Temp command using sw version 2.71.
I am using the latest window app on windows 10.
Kind Regards,
Lenny.
Let us use v273 only
Bluetooth
Did you enable bluetooth in the firmware before programming the controller?
Line 61
In myFocuserPro2 Extrasettings, did you set the delay on connect to 3s and the delay serial read timeout to 8s
Make sure you are using 9600 as the baud rate speed.
Temperature
This is v271
7/10/2018 12:04:02 PM: ReceiveString: Command retcmd = Z
7/10/2018 12:04:02 PM: ReceiveString: Buffer recbuf = Z20.000#
7/10/2018 12:04:02 PM: ReceiveString: Value retstr = 20.000
7/10/2018 12:04:02 PM: ReceiveString last temp reading was 0
7/10/2018 12:04:02 PM: ReceiveString raw response for Temperature was: Z20.000#
7/10/2018 12:04:02 PM: ReceiveString new temp reading was 20
7/10/2018 12:04:02 PM: ReceiveString Before Rounding TempOffsetVal: = 0
7/10/2018 12:04:02 PM: ReceiveString After Rounding TempOffsetVal: = 0
7/10/2018 12:04:02 PM: ReceiveString tempval adjusted:20
7/10/2018 12:04:02 PM: Change in temperature from previous reading = 20
working fine
and again at
7/10/2018 12:04:26 PM: ReceiveString: Command retcmd = Z
7/10/2018 12:04:26 PM: ReceiveString: Buffer recbuf = Z20.000#
7/10/2018 12:04:26 PM: ReceiveString: Value retstr = 20.000
7/10/2018 12:04:26 PM: ReceiveString last temp reading was 20
7/10/2018 12:04:26 PM: ReceiveString raw response for Temperature was: Z20.000#
7/10/2018 12:04:26 PM: ReceiveString new temp reading was 20
7/10/2018 12:04:26 PM: ReceiveString Before Rounding TempOffsetVal: = 0
7/10/2018 12:04:26 PM: ReceiveString After Rounding TempOffsetVal: = 0
7/10/2018 12:04:26 PM: ReceiveString tempval adjusted:20
7/10/2018 12:04:26 PM: Change in temperature from previous reading = 0
Nothing strange there at all, it returned 20 degrees
and again
7/10/2018 12:10:34 PM: ReceiveString: Command retcmd = Z
7/10/2018 12:10:34 PM: ReceiveString: Buffer recbuf = Z20.000#
7/10/2018 12:10:34 PM: ReceiveString: Value retstr = 20.000
7/10/2018 12:10:34 PM: ReceiveString last temp reading was 0
7/10/2018 12:10:34 PM: ReceiveString raw response for Temperature was: Z20.000#
7/10/2018 12:10:34 PM: ReceiveString new temp reading was 20
7/10/2018 12:10:34 PM: ReceiveString Before Rounding TempOffsetVal: = 0
7/10/2018 12:10:34 PM: ReceiveString After Rounding TempOffsetVal: = 0
7/10/2018 12:10:34 PM: ReceiveString tempval adjusted:20
Still the same, indicating no issue
The temperature is being returned at 20.0 all the time. This means either the temperature probe is not connected, not being recognized, or the wiring is wrong. The temperature probe has 3 wires, yellow goes to SIG which is D2, Red to 5v and Black to GND. There is a 4.7K resistor from D2 to 5V.
1. Check the wiring
2. Check that your resistor is 4.7K
I understand you have run the DS18B20Probe.ino program and it outputs to the serial monitor that the probe is not found. This points to a wiring issue.
Thanks Robert i did enable bluetooth but i never set the delay i will go back and double check that
as for the probe issue when i run the temp test i get the output shown in the attached image and with no probe connected i get no probe obviously the wiring of the probe is good and the pins meter out ok the resistor measures at 4.65kohm
its the output in the attached image that makes me think that there is a response its just not decoded? correctly
That is probably because baud rate is set wrong in serial monitor.
The DS18B20Probe program has #define SerialPortSpeed 9600 so it is expecting 9600
Robert,
Just on the bluetooth conection with verison 2.73 i cannot get it to connect no matter what i set the delay and serial read time out too. I have attched both sketches im using. I can only seem to connect with 2.71.
I have looked at and compared code for bluetooth (line by line) between both versions - it is identical - the bluetooth code was unaltered from many versions ago so I am at a loss to explain why it is not working for you,
I see from the logfile that you had successful connections with COM4 and COM5 for v271. I assume you had the serial port on one of those and the BT on another?
If using bluetooth you should ensure there is no usb cable between the computer and focuser before trying to connect.
What is the output of the BlueTooth.ino test program? (need to have usb cable connected) - it expects you to type data which should be echoed back
Last edit: brownrb 2018-07-11
I cant get the bluetooth test program to work but im not sure if im using it right . I connect to port 5 on the serial monitor which is my bluetooth port i can see that the device is connected in the bluetooth settings but when i type and send nothing appears on the monitor.
I cant explain why 273 dosent work either comparing the logging it seems to connect ok and sends the 02 query but seens to immediatly time out waiting on the response, where 271 gets the response.
I will go over all the hardware again and make sure i havent missed something
Thanks for the help!
Lenny
If i disable the push buttons i can connect to 273 via bluetooth?
Hi Lenny
If you cannot connect with the test program then there is a real issue.
Most problems occur around the RXD and TXD lines for the HC05 device. RXD to the BT device must be through a resistor divider to drop the voltage down to around 3.3V. TXD from the BT device back to RXD on the Arduino is ok, no resistors needed,
These are the connections
// EN/CMD // do not connect
// RX to middle of 2K and 1K resistor - other end of 2K resistor to D11 and other end of 1K resistor to ground
// TX to D10
// STATE // do not connect
Of course you still need to connect VCC and GND
I have attached schematic.
Now, another user had a problem - here is their reply below
//----------------------------
Thanks for all your help! Finally I managed to connect to the Arduino using Bluetooth. I had to play around quite some time but I think in the end the settings of my computer were wrong.
For all users using the original HC_05 Bluetooth module HC_05 here some hints how to establish a connection:
D10 of the Arduino has to be connected to TX of the HC_05
D11 has to be connected to a voltage divider so eg a 1k Resistor followed by a 2.2k Resistor going to GND. There where both resistors come together, connect this point with RX of the HC_05.
I had to program the HC05 first. To program the HC_05 connect D9 of the Arduino to Pin 34 (PIO11) of the HC_05 and set it to HIGH. Then I connect to BT com port using Arduin IDE Serial port monitor. Then I send these commands belowto BT device using the serial monitor .
If you are familiar to AT commands the right settings would be
AT+ROLE=0 // slave role
AT+UART=9600,0,0 // Set the Baudrate
AT+INIT // Initalize the SPP profile lib
AT+PSWD=1234 // Set the pairing password