Menu
Index
Engineering
Entertainment
Literature
Miscellaneous
Contact
Search
tiktok.com/@pkvi.xyz
buymeacoffee.com/pkvi
scored.co/u/pkvi_halfkdeltaxsq
Miter
Why Ayh?
Miter
@pkvi
"...may not meet professional standards."
322 miters
122 tenons
Subscribe
0.04007
NodeMCU BT Wrist Hand Flame Flash IDK


NodeMCU 12E
HC-05 Bluetooth Module
(3) RC Glow Plugs
(3) 5V Relay Modules
(3) AA Batteries
CR2 3V Battery
Flash Paper


  1. // Magic Flame Hand Thing
  2. // Bluetooth Only Version
  3. // pkvi
  4. // Pins
  5. int one = D0;
  6. int two = D1;
  7. int thr = D2;
  8. // Burn Time
  9. int burn = 1500;
  10. int mix_burn = 1500;
  11. void setup() {
  12. Serial.begin(9600);
  13. pinMode(one, OUTPUT);
  14. pinMode(two, OUTPUT);
  15. pinMode(thr, OUTPUT);
  16. digitalWrite(one, LOW);
  17. digitalWrite(two, LOW);
  18. digitalWrite(thr, LOW);
  19. }
  20. void loop() {
  21. if (Serial.available())
  22. {
  23. char data;
  24. data = Serial.read();
  25. if (data == '1') {
  26. digitalWrite(one, HIGH);
  27. Serial.write("Yep");
  28. delay(burn);
  29. digitalWrite(one, LOW);
  30. }
  31. else if (data == '2') {
  32. digitalWrite(two, HIGH);
  33. Serial.write("Sure");
  34. delay(burn);
  35. digitalWrite(two, LOW);
  36. }
  37. else if (data == '3') {
  38. digitalWrite(thr, HIGH);
  39. Serial.write("Okay");
  40. delay(burn);
  41. digitalWrite(thr, LOW);
  42. }
  43. else if (data == '4') {
  44. digitalWrite(one, HIGH);
  45. Serial.write("Bomb's Away");
  46. delay(mix_burn);
  47. digitalWrite(two, HIGH);
  48. delay(mix_burn);
  49. digitalWrite(one, LOW);
  50. digitalWrite(thr, HIGH);
  51. delay(mix_burn);
  52. digitalWrite(two, LOW);
  53. delay(mix_burn);
  54. digitalWrite(thr, LOW);
  55. }
  56. }
  57. }