![]() The below code is for servos, but a similar setup might work for your situation. I’m pretty new to programming, so do you think you can give me some pointers on how to go about this? I’ve read a few answers that say to do this. The Bluetooth modules I’m using are the Bluesmirf silvers from Sparkfun. I’ve looked at a few examples that talk about seperating the integers into two bytes, sending them, and reassembling the integer, but I’m not sure if it applies to numbers as big a 4000.Īny ideas on how I would go about this? I just want to send a number (say, 3000) through Bluetooth serial, receive it, and use that number to AnalogWrite (The teensy is capable of true analog output). ![]() I’ve tried sending this data by simply using Serial1.write(), but that only sends a byte with a max value of 255 (so an analog read value of 256 would be written received as 0). My analog input has a resolution of 12, and it is saved to an int that can range from 0 to 4096. However, I’m having a hard time trying to keep the data intact as I send it. ![]() I’m trying to use a Bluetooth serial connection to send analog input from one microcontroller to a receiving microcontroller (both Teensy 3.1), and having the receiver analogWrite the result. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |