Dears, I've got 3 codes to control robot-car:
- line following
- avoiding obstacles
- control by a mobilephone
And I would like to use all of them to make one common code which would enable me to chose IN ANY TIME a mode by IR remote control. Could you please advise me a general rule to make such project? For example how to make the Arduino sensitive for IR signal while it is busy with interpreting distance to avoid obstacles?
For example how to make the Arduino sensitive for IR signal while it is busy with interpreting distance to avoid obstacles?
Write the code so that it is non blocking and frequently returns back to the loop() function to read the IR signal
Thank you for your responce!
Do you think it is a good idea to use interruptions in such case?
And one newbie question concerning IR control, please - when I dial a number on the controler - does it involve an UART and memory buffer to store the value assigned to the dialed button?
Do you think it is a good idea to use interruptions in such case?
Unless warranted, I don't think interruptions are ever a good idea.
That's just a personal belief, built on years of experience.
And one newbie question concerning IR control, please - when I dial a number on the controler - does it involve an UART and memory buffer to store the value assigned to the dialed button?
Who knows? Do you have full technical details of the controller?
CtrlAltElite:
Who knows? Do you have full technical details of the controller?
Well, I believe its just a simple IR module, something like that: http://www.keyestudio.com/keyestudio-digital-ir-receiver-module-for-arduino.html. the name "controller" which I used was unfortunate.
when I dial a number on the controler
Please show where or how you "dial a number" on the device you linked?
CtrlAltElite:
Please show where or how you "dial a number" on the device you linked?
Thought you were asking about the receiver. Here is the kit: http://www.keyestudio.com/shop/keyestudio-infrared-wireless-remote-control-module-kits-for-arduino.html