Overview:
I followed the SoR tutorial for UART...but decided to add a twist by data logging through Bluetooth. (Plus...I tried a hard-wired Rx/Tx to USB converter from Pololu [http://www.pololu.com/catalog/product/391], but had more and more trouble trying to get their driver authenticated with Windows 7and never got it to work)
I (amazingly enough) got the Rx/Tx to bluetooth (somewhat) working ... I soldered two 1 kOhm resistors directly onto the Rx/Tx ports on the HC-05 bluetooth chip, as well as a ground and 5V wire ...which was very hard considering the half-circle pins on the side were only ~1.3mm apart.
Then I proceeded to go Control Panel --> add new device --> added the HC-05, all the software was plug-and-play and seemed to install just fine.
Then when I followed the directions on the SoR tutorial (
http://www.societyofrobots.com/microcontroller_uart_50_robot.shtml) to change the baud rate, add uart and rprintf functions, change the makefile, changed the fuses**see comment at end** etc...)
I used Hyperterminal to connect to the serial port (Note: I have Windows 7 and therefore no Hyperterminal, so I downloaded the files for it that were available on the web. Also note that when using Bluetooth, to get the connection working it will ask for a paircode ...the default for this device is "1234").
After connecting successfully, the screen instantly started showing output ...but it was totally garbled with seemingly nonsensical characters.
***However, when I covered up the photoresister on the sensor, or shined varying levels of light onto it the nonsensical characters would change with the same pattern (see attached picture: Garbled_Output_Covered_Photoresistor.jpg; the boxed portion is when the photoresistor was covered up)***
Any suggestions as to what could be causing this??
First... ref this:
http://www.societyofrobots.com/robotforum/index.php?topic=3004.msg22133#msg22133 ...it seems like the same problem but I've checked the baud rates
I verified my baud rates are correct (see attached pictures: "BAUD_Settings.jpg" and "BAUD_Settings2.jpg" -- unless there is something I missed in the set of programs included with the $50 dolloar robot tutorial...I don't fully understand all the code)
I also tried using Putty and verified the baud rate on there...still same garbled output
Other things that could make a difference but didn't seem too big to me:
-- As can be seen from screen shots, I disassembled the $50 robot and put the components on a breadboard -- not all components are there (only one photosensor and no servos, and I commented out that portion of the code)
--I have 5V going to the bluetooth HC-05 chip, when I think it's rated at 3.3V (ehhh don't have a 3.3V regulator and....hasn't fried yet...)
--**When I changed the fuses tab, it doesn't look like the tutorial did (but I think I changed it the same way...see picture: "Fuse_Settings.jpg")
--I know the wiring looks messy...I just connected the 6x pins from the isp programmer directly to the chip on the breadboard and left 'em there (sorry!!)
Any help/input would be greatly appreciated! I can try and turn this into a tutorial after I get it successfully working...