Close

OLED, menu, flying thing

A project log for rudRemote

Customizable NRF24L01+ radio control for multiple vehicles (AKA making a 40 year old radio fly a quadcopter!)

rudolphRudolph 05/28/2018 at 12:190 Comments

Been noodling around with just how to do menus on this thing. I probably had 5 or 6 attempts before finally getting one that seemed right.  At the moment it's a few placeholders and such, but the core functionality is there. When the remote is first turned on it shows the "choose a mode" menu to select between Robot Mode and Crazy Mode. After that, when in the main screen, clicking the encoder button takes it into menu selection. Here's a short video showing where it's at right now.

As you can imagine, Crazy Mode is what talks to the Crazyflie. Choose that one and the remote successfully sends flying commands to the 'copter. Again, doggo was not impressed with the sounds of the Crazyflie.

There's still plenty to be done. I really want to be able to set the sticks' min/max values from the remote itself instead of hardcoded (these old sticks seem to migrate a bit). And that info should be saved to EEPROM. Speaking of EEPROM, I also want to make it remember the last mode it was set to and default to that on power up instead of dropping to the Choose Mode menu at boot. While trying to come up with other things that should be menu-mo-tized I realized that the Teensy breakout board kit included a watch crystal for the Teensy's RTC. So I figure to add a clock (you can see the fake placeholder clock in the upper-right corner in the video). I also want to tap into battery power for a battery level icon, as well as figure out how to determine if it's plugged in and charging and show an icon for that instead of battery level.

Discussions