Ever thought about what a GPS could mean for a banana???? Well I did!
On this page:
I have shown a few of my latest wireless phantasies.
In this post some technicalities are documented.
This post is about the banana remembering its travels around the world which are recorded by GPS, before being eaten in a town somewhere in the Netherlands…
Start with a banana: the best I found is a banana to fry in a frying pan. (Delicious to add to your diner too!).
Cut out the opening for the display carefully and remove the inside. Then add the ATmega328, the GPS module, the transceiver module and the ATTINY2313 driving the Liquid Crystal display.
I have the ATTINY 2313 driving the liquid crystal display using UART, the TX of the ATmega328 connected to the RX of the ATTINY, the PortB of the ATTINY driving the display.
So we need only one wire besides the Voltage and the Ground to the ATTINY. The GPS is also talking serial to the ATMEGA, but this is done using softserial.
The transceiver RF12 is connected using
PB5 to RF12
PB4 to RF12
PB3 to RF12
PB2 to RF12
PD2 to RF12
It is a bit of detailed programming to get the number from the string the GPS module sends:
This is the output:
but you have to have a number for latitude and longitude to be able to see in which town you are. Typically for C you have to analyze the string, get the CHAR value and put this in the right digit of the LONG. A bit of a nuisance if coming from higher programming languages, but if you have seen the concept, it is easily done.
The output of the banana transceiver could be:
5156.25 688.31 … hola i am in Enschede
raised in Guadaloupe, and well educated
having seen the seven seas, survived many a storm
crossed the equator, love in all ports 🙂
to be eaten in Enschede, how sad :-(((
In the second version I added two RGB LED’s steered by an ATTINY 2313 using UART from the central ATmega328.
see the video on the above mentioned page 🙂 or youtube, see lin at start of document.