see also: Mystery LED in a box: part 0
see also: Mystery LED in a box: part 1
see also: Mystery LED in a box: part 2
Still we don't have the contents of the wedding present that was given to us on our wedding party. Along the way we found clues telling us to exentend the electronics board with a pushbutton and most recently to fill all 128 bytes of the EEPROM with the hex value '0x03'.
To get to the EEPROM I added a 10 pins ISP header to the board to be able to connect it to my programmer. This gave me also the nice opportunity to read the fuse and lock bits to anticipate for any other surprises. Hmm, no surprises here (was I thinking too difficult again? Was I disappointed?), the fuse and lock bits were left alone and still had their default value. I also made a backup of the EEPROM and Flash memory to fix any possible screw-ups.
I used Codevision to read the EEPROM and changed it as requested. Yeehaa, a new Morse sequence!
"PROFICIAT MET JULLIE SKILZZ. CHECK HTTP://**.***.**.***/DEZONDEVOORBIJ/ OM DE VOLGENDE HINT TE VINDEN. MYMICROCONTROLLERCANBEATTHEHELLOUTOF..."
(the '*' were actually filled in but are not really relevant here)
After congratulating us with the achieved result so far we were presented a website for the next clue. Here the clue ended with a seemingly harmless reference to the coolest bumper sticker ever that hangs on the wall of Deddies Lab. Note taken!
So, a website. The tips&tricks section on the website gave us a link to the wikipedia site of morse code. We could have used that some time ago! Funny...
We were told to make a picture of the mystery box with today's newspaper to prove that the cube was still intact. Okay, I maybe broke it a week ago... but it is fixed now. The picture below will lead us further on our quest as promised on the website.
It is obviously that somebody is watching our moves. I suppose we have to be carefull with what we say the weeks to come. Hang on...
see also: Mystery LED in a box: part 4
see also: Mystery LED in a box: part 5
see also: Mystery LED in a box: part 6
see also: Mystery LED in a box: part 7
Posts tonen met het label codevision. Alle posts tonen
Posts tonen met het label codevision. Alle posts tonen
zaterdag 16 juli 2011
zaterdag 5 februari 2011
Electronic watering can
To get the necesarry carbon dioxide to oxygen conversion Deddies lab is accommodated with a young Ficus Lyrata. To not interrupt its attempt to become the biggest Ficus on earth it needs a weekly dosis of water. That combined with the lab's motto that everything deserves a microcontroller gave inspiration for a little project on a rainy sunday: An automated electronic watering can!
No, it is not an R2D2 alike robot holding a watering can. Basically it is a 10 liter reservoir filled with water and a little pump that waters the plant once a week.
To count the days and make the device extremely low on power consumption it uses a simple (mechanical) wall outlet timer that turns on the electronics once a day for only 15 minutes.* In this 15 minutes the day counter is incremented and on the 7th day the pump starts pumping up the water. That is unless their is enough water in the tank (guarded by mr. Duck) and some other preconditions have been met. If mr. Duck notices the water level is getting low, he pulls the rope indicating that no pumping is allowed anymore unless the tank is filled again.
* I could have used a more modern timer that will only turn on the watering can once a week. But as it was still a sunday I made it a kind of scrapheap challenge and used parts I had lying around instead of buying a new timer the next day.
An Atmega8 is used running on its own internal 1 MHz clock. A pushbutton is available to set the day that is most convenient for watering. Besides the timer mode their is also the possibility to give the plant an extra shot of water with the single shot pushbutton. This button is also useful when adjusting the voltage regulator that determines how long the pumps needs to be turned on. The single shot mode can test the amount of water that is pumped up. With the Aux In feature a external trigger signal can start the pump. That is unless the Timer Mode is disabled with the jumper. There is also an additional Aux Out that turns high when the pump is activated.
Especially the Aux In and Out features can become useful when this watering can is part of a larger home automated system. Maybe we get plenty of 'rainy sunday afternoons' for Deddies lab to roll out this home automation plan.
When the hole thing was put together and ran the first tests I realized that an important feature was missing. Although mr. Duck indicates the water level is getting low and pumping is not allowed anymore there is still no (auditive/visual) signal to the outside world that the tank needs refilling. So, mr. Duck guards the pump but not the plant. So an addition to the electronics will be needed to fix this.
My Ficus Lyrata needs approximately half a liter per week. With a water reservoir that can contain 10 liters and has a minimum water level of 2 I have to fill the tank every 4 months. Not bad with the water tap at the other side of the house.
Schematics can be found below and C source code for Codevision AVR can also be downloaded.
woensdag 1 december 2010
Secret d'Icey
After building the first version of the secret dice in Deddies lab, it was time for an upgrade; Secret d'Icey!
Secret d'Icey has the same functionality as its bigger brother, but has some interesting upgrades: It is smaller, lighter, and has a nice chrome 'Icey' look (some coasters from the Ikea do the trick here)*.
The batteries are easy accesible without giving access to the secret stuff inside. So no auxillary power connection needed to be included here in case the batteries run flat. A three dimensional accelerometer instead of a homemade tilt sensor is used. Another new nice feature is the automated power off function. When the dice is not used (change of dice state) for 30 seconds the power is shut off automatically. The same webshop that provided the accelerometer also had in store a tiny (robot) controller with an Atmega328 on board. This little device is originally designed to control a small robot, but was also very suited for the Secret d'Icey. The dual H-bridge seems overkill, but the single transistors in the H-bridge proved to be very useful.
* Okay, at the moment this secret dice doesn't serve a higher purpose and is probably destined to stay a piece in the Deddies Lab hall of fame, so I may as well tell you the secret code: 6, 5, 4, 3, 2...... the last number is up to you.
Source:
- secret_dicey012a.c (winavr)
- codevision-dice.c (codevision, included in secret_dicey012a.c)
Labels:
accelerometer,
Atmega328,
Atmel,
codevision,
d'Icey,
Dobbelsteen,
Geheime,
Pololu,
Secret,
winavr
donderdag 30 september 2010
Huge Secret Dice
For a friend's wedding we had to find a way to wrap a gift we were going to give to the happy couple. With inpiration from PICing4fun's microcontroller based secret box we decided to construct our own secret dice. As for the size, bigger was better, this gave us enough space to fit all the parts. Eventually a 20x20x20 cm impressive dice was handed over at the wedding accompanied by a handful of more or less meaningful hints that would reveal a secret code. We also did the kind request not to butcher the dice with a flame thrower or crowbar and suggested to figure out the clues during their upcoming honeymoon.
The basic idea is to turn the dice according the code. When the dice is turned exactly according the code with the right number on the dice facing up, the lit will be unlocked and reveal the goodies that are put inside. The lit is locked by a simple hobby servo, a clever constructed mechanical tilt sensor checks for the right state the dice is in and an always popular Atmega88 does the thinking.
The basic idea is to turn the dice according the code. When the dice is turned exactly according the code with the right number on the dice facing up, the lit will be unlocked and reveal the goodies that are put inside. The lit is locked by a simple hobby servo, a clever constructed mechanical tilt sensor checks for the right state the dice is in and an always popular Atmega88 does the thinking.
- trueboard_secretdice2.c (codevision)
- codevision-dice.c (codevision, included in trueboard_secretdice2.c)
Labels:
Atmega88,
Atmel,
codevision,
Dice,
Dobbelsteen,
Geheime,
Secret
Abonneren op:
Posts (Atom)