-
1Print the 3D-printed cat ghost model.
Print the 3D-printed cat ghost model.
-
2Connect the Grove - Water Atomization module to the board.
VCC | 5V GND | GND IN | A3
-
3Solder the piezoelectric disc to the Grove - Water Atomization module
Piezoelectric disc | Grove - Water Atomization module
----------------- | ------------------------
Positive (+) | OUT+
Negative (-) | OUT- -
4Fill the water reservoir with water.
Connect the water reservoir to the Grove - Water Atomization module.
-
5Upload the following code to the board.
const int PIRPin = 2; const int LED1= 9; // pin para el LED
const int LED2 = 8;void setup() {
pinMode(LED1, OUTPUT);
pinMode(LED2, OUTPUT);
pinMode(A3, OUTPUT);// Set A5 as OUTPUT
}void loop() {
digitalWrite(A3, HIGH); // atomize
digitalWrite(LED1, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(LED2, HIGH); // turn the LED on (HIGH is the voltage level)
delay(10000); // wait for 10 seconds
//digitalWrite(A3, LOW); // atomization stopped
//delay(1000); } -
6Place the smoking cat ghost in a desired location.
- Turn on the power switch.
- The cat ghost will start to smoke.
-
7Enjoy your smoking cat ghost!
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.