As I have been updating the camera controller for the new sensors, I have been thinking about remote controlling the controller.
As it currently stand there is a 20x4 OLED and six buttons using a multiplex setup, this would be replicated on the remote
If we assume that during initial start up that another PICAXE can be detected of some form of radio link (thinking about 10 ish meters - the more the better, but cross that bridge later). What would be the best way to get the display to update and send the key press data back.
I am thinking during the detection of the remote a flag would be set so that the keys on the main controller a no longer work, and a generic message displayed on the OLED. Sending what they press back to the main controller should, in theory at least, be fairly strait forward. send a number that corresponds to the selection (pretty much what the key press routine does anyway) back the waiting controller.
What is being displayed is slightly trickier. A custom built backpack for the remote display could mean that entire screen prints could be sent byte by byte, on the other hand it maybe better to have pre-programmed displays and simply call each display.
The first option would mean that I could use the code already in the main controller, but would also affect the main display when there are things that don't need to be displayed are transmitted
The second option would increase the code load in the main controller to a greater degree, it would also mean that future updates would need to be programmed into the remote control too
there is a third option as well I suspect. This it to recode the backpack of the in the main controller display. In this instance I would remove control of the 3 extra pins and use that code section to ignore all coms until a certain data set is received which will make it drop back into main mode. This route would mean that the display code can stay unchanged with a simple flag check when user input is called for. the transmitter would be connected the same serial line as the OLED display, I have at least 5 spare pins but there are a lot of menus to display and repeating the code for a different pin seems excessively bulky.
anyone had experience with this sort of thing?
any idea on how you would go about it?
As it currently stand there is a 20x4 OLED and six buttons using a multiplex setup, this would be replicated on the remote
If we assume that during initial start up that another PICAXE can be detected of some form of radio link (thinking about 10 ish meters - the more the better, but cross that bridge later). What would be the best way to get the display to update and send the key press data back.
I am thinking during the detection of the remote a flag would be set so that the keys on the main controller a no longer work, and a generic message displayed on the OLED. Sending what they press back to the main controller should, in theory at least, be fairly strait forward. send a number that corresponds to the selection (pretty much what the key press routine does anyway) back the waiting controller.
What is being displayed is slightly trickier. A custom built backpack for the remote display could mean that entire screen prints could be sent byte by byte, on the other hand it maybe better to have pre-programmed displays and simply call each display.
The first option would mean that I could use the code already in the main controller, but would also affect the main display when there are things that don't need to be displayed are transmitted
The second option would increase the code load in the main controller to a greater degree, it would also mean that future updates would need to be programmed into the remote control too
there is a third option as well I suspect. This it to recode the backpack of the in the main controller display. In this instance I would remove control of the 3 extra pins and use that code section to ignore all coms until a certain data set is received which will make it drop back into main mode. This route would mean that the display code can stay unchanged with a simple flag check when user input is called for. the transmitter would be connected the same serial line as the OLED display, I have at least 5 spare pins but there are a lot of menus to display and repeating the code for a different pin seems excessively bulky.
anyone had experience with this sort of thing?
any idea on how you would go about it?