Andres SabasPaola del Pilar Vazquez
Published © CERN-OHL

How to create a smoking cat ghost

Learn how to create your own spooky smoking cat ghost using Bast Pro Mini and a piezoelectric disc.

BeginnerShowcase (no instructions)16 hours158
How to create a smoking cat ghost

Things used in this project

Hardware components

Bast Pro Mini M0
Electronic Cats Bast Pro Mini M0
×1
Resistor 330 ohm
Resistor 330 ohm
×2
3 mm LED: Green
3 mm LED: Green
×2
Jumper wires (generic)
Jumper wires (generic)
×20
Groove Water atomization module
×1
USB-A to Micro-USB Cable
USB-A to Micro-USB Cable
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

The wiring required for our smoking cat ghost

The first step is to connect all the electronic components as seen above.
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.

Wiring the components

This picture shows the process of wiring all the components

Our 3d model printed

In this case, we had to print our 3d model 300% bigger than the original.

Code

Code for our smoking cat ghost using Bast Pro Mini 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); 
  
}

Credits

Andres Sabas
48 projects • 47 followers
Co-Founder of The Inventor's House Hackerspace, DIY, Workaholic
Paola del Pilar Vazquez
1 project • 0 followers
Electronic Engineer. Open Hardware. Creation to improve education.

Comments