I'm in the process of building a GPS speedometer. I saw a short utube video the someone used a rotary dial to change what is displayed. That would be my ideal solution. I saw another video where they used a button press but that seemed chaotic. I really like the idea of turning the knob to display lat/lon, altitude, speed, time, I thought about adding in temp and humidity(may just leave that out.. IDK).
Is there a sketch out there that utilizes a dial to switch what is displayed on an oled?
Thanks. Nick
Is there a sketch out there that utilizes a dial to switch what is displayed on an oled?
I doubt it but you do not need one. You just need to know how to read an encoder, then use the result to display what you want to the OLED.
http://playground.arduino.cc/Main/RotaryEncoders
Mike; I've got my GPS, rotary encoder all running, Now have the OLED hooked up. I don't expect you to hand over a sketch and say there you go, have a nice day. But.. Stumped on how to tie them all together to display input from GPS based on a number specified from the Rotary encoder out to the OLED.
Back to the midnight oil. EDISON DIDN'T SOLVE HIS ISSUES IN A DAY.
#INCLUDE GPS.H
#INCLUDE ENCODER.H
#INCLUDE OLED.H
Into header of MySpeedoProject.ino?
I still have to "de-bounce" the encoder to smooth out the dial clicks as I turn the dial.
Anyway, thanks, Happy Easter ALL!
I still have to "de-bounce" the encoder to smooth out the dial clicks as I turn the dial.
You shouldn't have to.
Stumped on how to tie them all together to display input from GPS based on a number specified from the Rotary encoder out to the OLED.
Start simply then build up. Forget the encoder and just get the GPS to display.
Then get it to display another function as if the encoder was clicked, but without using the encoder.
Finally use an if statement to decide which of those two displays you want. The if statement uses the encoder count to decide what piece of code is run.
Hi,
#INCLUDE GPS.H
#INCLUDE ENCODER.H
#INCLUDE OLED.H
Careful, C++ is case sensitive, so careful with the use of capitals.
Have you got a GPS sketch running and readings being read?
Have you got an encoder sketch running a that reads the encoder?
Have you got an OLED Display connected and a sketch running that lets you display to it?
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
Can you please post a copy of your sketch, using code tags?
They are made with the </> icon in the reply Menu.
See section 7 http://forum.arduino.cc/index.php/topic,148850.0.html
Thanks.. Tom... 