Reading additional PING sensors from Eddie firmware
Hi all,
I intend to install two additional PING sensors at the back of the eddie robot. I have tried to understand the eddie firmware and I suppose that it is hard-coded for two PING sensors only. Are my inferences correct?
So, let's say I plug-in the additional PINGs to GPIO pins 3 & 4 (as they are numbered on the eddie control board), what changes/additions do I need to make in the eddie firmware to get the additional PINGs working?
Any suggestions?
Thanks
Edit: Can anyone direct me to the part of the code in eddie formware which is used to communicate with IR sensors. I do not find any such description in the comments.
I intend to install two additional PING sensors at the back of the eddie robot. I have tried to understand the eddie firmware and I suppose that it is hard-coded for two PING sensors only. Are my inferences correct?
So, let's say I plug-in the additional PINGs to GPIO pins 3 & 4 (as they are numbered on the eddie control board), what changes/additions do I need to make in the eddie firmware to get the additional PINGs working?
Any suggestions?
Thanks
Edit: Can anyone direct me to the part of the code in eddie formware which is used to communicate with IR sensors. I do not find any such description in the comments.
Comments
Anyway, that's what I figured out to this point.
Todd
That's great. I am using C# to send commands to eddie control board rather than using vpl. It's a little complicated for me I guess. The "PING" command polls all the sonars connected to the configured ports (as mentioned in the Parallax command Set). I am waiting for the additional sensor to arrive so I would update my findings.
I can see how to include an additional PIN assignment in the eddie firmware. Regarding the addition to PING mask, are you referring to this command " INITIAL_PING = |< PING_0 | |< PING_1 "?
Furthermore, I wanted to ask as how to send both "ADC" & "PING" commands concurrently through the serial interface so that I could read all the 10 channels (first 8 for ADC and the next 2 for PING) simultaneously. Any idea how to poll both the ADC and PING simultaneously rather than one by one?
Thanks.
I don't think you can stack commands.
tlc
If serial commands cannot be stacked in a single serial write statement then how to poll both the ADC and PING sensors simultaneously. Since both commands return a response so it could be more convenient to read all the data in a single instance rather than one after the other.
Any suggestions?