Introduction I wanted to do something to connect the Microview to the real world, so this project begins a short series to display GPS data on the Microview. All we will do here is connect a GPS unit and show some of the data it is sending. Next, we will interpret that data into GPS co-ordinates.
The MicroView has a dial-type gauge that can be implemented in two styles – larger and smaller. This project is an adaptation of Project 003 which also used a potentiometer to demonstrate the MicroView sliders.
It’s possible to draw multiple components of different kinds on the MicroView screen at once.
In this blog, the three inputs to an RGB LED are controlled using pulse width modulation (PWM) signals. The three sliders are set up with simple labels ‘R’, ‘G’ or ‘B’ to the left. Each colour is raised to full brightness, then dimmed in sequence. The sliders show this graphically and display the current PWM value from 0-256 in real time.
Pins referenced in code as 3, 5 and 6 (numerical pins 12 to 14) are capable of PWM on the MicroView. These are connected to the LED via 330 ohm resistors in the usual way, with the COMMON of the LED connected to pin 8 (GND).
I have just received the MicroView Education kit, the result of a Kickstarter project by the team at Geek Ammo and I’m pretty impressed.
The hardware is distributed by Sparkfun and essentially comprises the MicroView with the accessories normally included in the (Arduino) Sparkfun Inventors Kit. There are many tutorials and books that use these components and as the MicroView has the same functionality as the Arduino Uno, they can all be used.
This project series is a means by which I am testing out the various ways of blogging similar projects easily. So they are not designed to be instructional as such, more a testbed. Having said that, if they are useful, feel free to use them and have fun!
What the Project Does:
We are going to make 5 LEDs turn on and off, one after the other.
What are we Learning?
How to write a simple Arduino sketch, with comments
How to allocate input/output pins and set them high or low.
How to connect LEDs correctly to the Arduino board.
I had thought I might use it as a fixture on my Zero electric motorbike to display the word ‘electric’ as I rode passed. Reviewing the code has been a useful reminder of the very basics, however I think the manufacture of something ‘roadworthy’ does not merit the effort at this time.
What might be a useful excercise if this were to be used with @stemexcel students might be to do with transcribing the required lettering into the code. Also, some nice calculations could be done with the delays in the code to work out the size of the lettering given a certain speed of travel.
So for future development, some kind of simple wand that can be ‘swished about’ might be needed with the LEDs on it to use as the display. Worth thinking about I think.