Andrew Cowan
Senior Member
My A level electronics project is a radio controlled search and rescue robot, equipped with lots of sensors. I have 458MHz 100mW (radiometrix) radio link sending data from the robot, with a packet being sent every second. This has about 20 variables.
I am currently designing the PCBs for the other end of the radio link. I have a GLCD with a touchscreen, which sends a serial announcement when pressed. I need to continuously monitor for these, and then change the touchscreen or send the appropriate data across the radio.
However, I also need to monitor the radio. I haven't ordered the PICAXE/s yet, but my current design has the radio connected to the hserin pin. The touch screen is then connected to a pin which is scanned for an interrupt. With no touches, the code keeps the screen updated with the values coming in through hserin. However, when the screen is pressed, the interrupt is triggered, and the PICAXE does the appropriate action. It then goes back to updating the screen.
Is this the best way to do this? I considered connecting the touchscreen input to another PICAXE, which then puts an output high to tell the main PICAXE there is a command. The main PICAXE would then ask what the input was, and the other PICAXE would send across the data. Is this a better way of doing it?
Thanks for any input!
Andrew
Many thanks to Radiometrix and Matrix Orbital for their support with this project!
I am currently designing the PCBs for the other end of the radio link. I have a GLCD with a touchscreen, which sends a serial announcement when pressed. I need to continuously monitor for these, and then change the touchscreen or send the appropriate data across the radio.
However, I also need to monitor the radio. I haven't ordered the PICAXE/s yet, but my current design has the radio connected to the hserin pin. The touch screen is then connected to a pin which is scanned for an interrupt. With no touches, the code keeps the screen updated with the values coming in through hserin. However, when the screen is pressed, the interrupt is triggered, and the PICAXE does the appropriate action. It then goes back to updating the screen.
Is this the best way to do this? I considered connecting the touchscreen input to another PICAXE, which then puts an output high to tell the main PICAXE there is a command. The main PICAXE would then ask what the input was, and the other PICAXE would send across the data. Is this a better way of doing it?
Thanks for any input!
Andrew
Many thanks to Radiometrix and Matrix Orbital for their support with this project!