Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
thepersonwhobuild
Created January 17, 2022

Spiderman's webshooter!!

it is a node mcu and spring powered spiderman web shooter this is v1

Spiderman's webshooter!!

Things used in this project

Hardware components

NodeMCU ESP8266 Breakout Board
NodeMCU ESP8266 Breakout Board
×1
Arduino Nano R3
Arduino Nano R3
×1
SG90 Micro-servo motor
SG90 Micro-servo motor
×1
Analog joystick (Generic)
×1
Switch Accessory, Spring
Switch Accessory, Spring
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Multitool, Screwdriver
Multitool, Screwdriver

Story

Read more

Code

Untitled file

C/C++
#include <Servo.h>
int sw = A0;
Servo myservo;

void setup ()
{
Serial.begin (9600);
  myservo.attach (D0);  
}
void loop ()
{

 
int a = analogRead (sw);
 if (a>=100)
 {
  myservo.write (180);
 }
 else
 {
  myservo.write (0);
 
 }
 Serial.println (a);
}

Credits

thepersonwhobuild
3 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.