Reindeer and Sleigh Live Tree Moisture Testing Ornament

By garry3296

4
0
Free
It's free to download

Information

Reindeer and Sleigh Live Tree Moisture Testing Ornament

My ornament is designed to test the moisture levels of the soil of a live Christmas tree. There are three main parts to the ornament. The main part is the sleigh. The sleigh houses the Flora micro controller, the battery pack and three of the indicator LEDs. Next is the reindeer, which has one indicator LED at the nose of the deer. The final part is the moisture sensor probe in the shape of a present. The reindeer and sleigh parts of the ornament are hung in the tree, while the present moisture probe is stuck into the soil of the tree. The wiring schematics for the ornament can be found above. The wires connecting the LED of the reindeer to the sleigh can be placed to resemble reigns. I recommend green wire for the moisture sensor to help hide it as it runs trough the tree down to its base. The moisture of the live Christmas tree's soil is indicated by the four LEDs on the ornament. If zero moisture is present, then none of the LEDs light up. 1-25% the LED on the reindeer will light up. 26-50% the reindeer and left most sleigh LED will light up. 51-75% three LEDs will light and 76+% will light all four LEDs. I wrote the following Arduino program to execute these moisture readings. ---------------------------------------------  int moistureSensor = 10; int moistureValue = 0; int led1 = 9; int led2 = 6; int led3 = 12; int led4 = 1; void setup() {  Serial.begin(9600); pinMode(moistureSensor, INPUT); pinMode(led1, OUTPUT); pinMode(led2, OUTPUT); pinMode(led3, OUTPUT); pinMode(led4, OUTPUT); digitalWrite(led1, HIGH); digitalWrite(led2, HIGH); digitalWrite(led3, HIGH); digitalWrite(led4, HIGH); } void loop() { moistureValue = analogRead(moistureSensor); if (moistureValue > 767) { digitalWrite(led1, LOW); } if (moistureValue > 511) { digitalWrite(led2, LOW); } if (moistureValue > 255) { digitalWrite(led3, LOW); } if (moistureValue > 0) { digitalWrite(led4, LOW); } else { digitalWrite(led1, HIGH); digitalWrite(led2, HIGH); digitalWrite(led3, HIGH); digitalWrite(led4, HIGH); } }  ------------------------------------- This design should be easily printable on a current 3D printer. I did, however, have issues printing this on my outdated Makerbot Cupcake CNC due to the z-axis stepper motor skipping. I welcome everyone to use and improve upon my design and code. Thanks for checking out my design!
1 objects 0 Followers 40 Downloads
Joined over 8 years ago
Enjoy a 10% sitewide
Discount at checkout
Get a 10% Discount