Close
0%
0%

How to create a smoking cat ghost

Learn how to create your own spooky smoking cat ghost using Portenta H7 Lite and a piezoelectric disc.

Public Chat
Similar projects worth following
Imagine having the scariest and at the same time the cutest decoration for your Halloween party. In this tutorial, you will learn how to easily nail this. The project doesn’t need a lot of knowledge in the electronic field, so beginners are welcome!

This project is a variation from the one done by EDISON SCIENCE CORNER, you can find it here: (https://www.youtube.com/watch?v=VRW2a1zu6bY), we used the 3D model from MIKEKAVOURAS found in https://www.thingiverse.com/thing:4635017, we will be using as microcontroller the Portenta H7 Lite.

For this project, we are using the Grove - Water Atomization module. This module has a piezoelectric disc that resonates to a frequency capable of generating mist in contact with a water surface. ATTENTION: the angle between the water surface and the piezoelectric disc can affect the generation of mist.

The wiring required for our smoking cat ghost

The first step is to connect all the electronic components as seen on the circuit diagrams. 

Our 3d model printed

We print the model in 3D from MIKEKAVOURAS, you can download it here https://www.thingiverse.com/thing:4635017. We printed it 311% bigger than the original in order for the electronic components to fit in.

Code

Code for our smoking cat ghost using Portenta H7 LITE and a piezoelectric disc. 

C/C++

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);   }



plain - 550.00 bytes - 10/30/2023 at 21:37

Download

  • 1 × Portenta H7 Lite
  • 2 × Resistor 330 ohm
  • 2 × 3 mm LED: Green
  • 20 × Jumper wires (generic)
  • 1 × Groove Water atomization module

View all 6 components

  • 1
    Print the 3D-printed cat ghost model.

    Print the 3D-printed cat ghost model.

  • 2
    Connect the Grove - Water Atomization module to the board.
    VCC | 5V
    GND | GND
    IN | A3
  • 3
    Solder the piezoelectric disc to the Grove - Water Atomization module

    Piezoelectric disc | Grove - Water Atomization module
    ----------------- | ------------------------
    Positive (+) | OUT+
    Negative (-) | OUT-

View all 7 instructions

Enjoy this project?

Share

Discussions

Does this project spark your interest?

Become a member to follow this project and never miss any updates