i´m trying to make some examples with the bluetooth module hc-05 and my own program but I have problems with sending data to my arduino. In my example i will send analog values from a c# programm to the arduino and make an analogWrite with this value to an LED.
→ what does work:
- with hTerm i can send all analog values (0-255)
- I can send values to the arduino and it does an analogWrite
3 my prog can connect to the arduino and send values
→ what does not work:
when i send a value between 128-255 from my prog to the arduino it doesn´t get the right value, insted of it has the value 63.
To show which value the arduino get, I attached a LCD.
I have the hc-05 connected like it is in this ref:
in addition, following a coment from a user at this topic
I have to add an 2k2 resistor from hc-05 tx pin to GND.
thank you guys for helping
Form1.cs (6.23 KB)
helloworldExample.ino (1.72 KB)