serout p7,i57600,[13, hex2 mode\2]
for index = 1 to 18
serout p7,i57600," ", dec3 temp(index)\3]
next
serout p7,i57600," pingrange: ", dec pingrange]
serout p7,i57600," Positie panservo: ", dec positie_pan, 13]
Now my question is how can I programm P6 so i can download code to my microcontroller?
MyData var byte
serin p0, i9600, [DEC MyData]
This is an example code form the manual… but this code is not getting me anywere.
In my case i changed the code offcourse in P6,i57600…
Ow… to explain why i use the pins 6 and 7 and not the serial pins…first: they are the 3.3V pins of the AtomPro and I have a ps2 controller connected to the BotBoard, and true a serial connection A SSC-32 servo controller is connected. In (most/all) examples on the forum I could not find this set up of hardware, or I just dont understand it all. (Im still learning the basics)
I am guessing that you have a PC that you are trying to use BT over to talk to you robot? I could not tell from your post if you had any luck sending data over the BT module to the PC, which would tell us if you have it is configured properly…
Receiving data can have it’s challenges, as a BAP will only receive data from a SERIN command if the processor is sitting in the SERIN command when the data is received. With some devices you can control them with the flow pin option in serin (uses RTS or CTS pins…) Not sure about this one. But you can often work around it if you setup your own protocol. Like you send a prompt over BT from the robot to the PC to say you are ready and then the PC sends the data…
jep im trying to make a wireless BT connection between my PC and robot…
Yes the BT unit is comfigured “correctly”. I have used a program called Hterm for that; with this I can sent AT commands to the bluetooth module, and receiving information. ( like changing the name, baudrate, ask for status of unit)
So i know for sure that the Serin and Serout are working; Serin by the Hterm programm, and Serout by Hterm and BasicMicro programming.
Im hoping that it came now just down to programming… only sucks that i have no idea how to aproach this…
thx for the reply
ps. I attachted the Hterm program, dont know if you are familiar with it… hterm.zip (1.46 MB)