Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
draakje156
Published © GPL3+

COVID-19 Simple Friendly Social Distance Robot Watchzi

Watchzi measure the distance between it and the approaching persons, gives warning with light and sound when 1.5 meters is exceeded.

BeginnerFull instructions provided18 hours8,075

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Ultrasonic Sensor - HC-SR04 (Generic)
Ultrasonic Sensor - HC-SR04 (Generic)
×1
Seeed Studio Neopixel 1 mtr RGB LED
use only 1 led , their are 60 on it .
×1
AA Batteries
AA Batteries
×4
Battery holder 4x AA with red/black wire
×1
Slide Switch
Slide Switch
×1
Active Buzzer 5V (HXD)
×1
3D filament PLA Black
×1
3D filament PLA transparant or natural for had
×1
Machine Screw, M3
Machine Screw, M3
×8
Brass-threaded-inserts-short M3 (head inserts)
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE
Fusion
Autodesk Fusion
Its only for changing 3D files but not required

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)
Any 3D printer using PLA and STL files
Soldering iron (generic)
Soldering iron (generic)
Solder some parts , see manual
Solder Wire, Lead Free
Solder Wire, Lead Free
Multitool, Screwdriver
Multitool, Screwdriver
Use to close the back of Watchzi
Wire Stripper & Cutter, 18-10 AWG / 0.75-4mm² Capacity Wires
Wire Stripper & Cutter, 18-10 AWG / 0.75-4mm² Capacity Wires

Story

Read more

Custom parts and enclosures

STL file base

3D file for your printer , only have to slice it with your program like prusaslicer

STL file base Plate

3D file for your printer , only have to slice it with your program like prusaslicer

STL file batterypack holder

3D file for your printer , only have to slice it with your program like prusaslicer

STL file had transparant

3D file for your printer , only have to slice it with your program like prusaslicer

STL file lower base plate

3D file for your printer , only have to slice it with your program like prusaslicer

Schematics

Frizing diagram PDF

Frizing diagram PDF

Fritzing schematic

Fritzing schematic file

Code

Program file Arduino Nano V3 for social distance robot Watchzi

Arduino
Program file Arduino Nano V3 for social distance robot Watchzi for Arduino IDE (INO file).
change the distance and Tone and Led color if you like.
/*
Friendly Watchzi Social distance robot 
Made by Mark Huijbers , Netherlands
Used : Arduino Nano R3 
you can change the Neopixel colors ( see color names online)
you can change the tone frequence 
*/

#include "FastLED.h"
#define NUM_LEDS 1 // How many leds ,program counting from 0
#define DATA_PIN 7 // Pin7 on NANO (data leds)
CRGB leds[NUM_LEDS];

const int trigPin = 4; //ultransone sensor
const int echoPin = 5; //ultransone sensor
long duration;
int distance;
const int buzzer = 9; // buzzer position

void setup() { 
   
FastLED.addLeds<WS2812B, DATA_PIN, RGB>(leds, NUM_LEDS); // type leds Neopixel with controller WS2821B
pinMode(trigPin, OUTPUT); 
pinMode(echoPin, INPUT); 
pinMode(buzzer, OUTPUT); 
}

void loop() { 


digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);

duration = pulseIn(echoPin, HIGH);

distance= duration*0.029/2; // calculate for using meters , 150 is equal to 1,5 mtr / 6 Feet

if (distance <= 150){
  leds[0] = CRGB::Red;
  FastLED.show();
  tone(buzzer, 1000); // tone frequence 1 Khz , you can change them 
}
else {
   leds[0] = CRGB::Green;
  FastLED.show();
  noTone(buzzer); 
}
delay(500); // delay else the neopixel led and measure are to fast 
}

Credits

draakje156

draakje156

1 project • 0 followers

Comments