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!
Sujata
Created September 19, 2021

Gesture Based Dispenser

Gesture Based AWS_IoT Core 2 Dispenser

61
Gesture Based Dispenser

Things used in this project

Hardware components

SG90 Micro-servo motor
SG90 Micro-servo motor
×1
AWS IoT EduKit
Amazon Web Services AWS IoT EduKit
×1
Nano 33 BLE Sense
Arduino Nano 33 BLE Sense
×1

Software apps and online services

AWS IoT
Amazon Web Services AWS IoT
AWS EC2
Amazon Web Services AWS EC2

Hand tools and fabrication machines

Extraction Tool, Amphenol SMP Female Connectors and Cable Assemblies
Extraction Tool, Amphenol SMP Female Connectors and Cable Assemblies
Premium Female/Male Extension Jumper Wires, 40 x 6" (150mm)
Premium Female/Male Extension Jumper Wires, 40 x 6" (150mm)

Story

Read more

Code

Upload code

C/C++
//#include <SoftwareSerial.h>
//SoftwareSerial EEBlue(10,11); // RX | TX
/*#define led = 2;
#define motor = 3;
#define lamp = 4;*/
bool state = 0;
void setup() {
  // put your setup code here, to run once:
  pinMode(2,OUTPUT);
  pinMode(3,OUTPUT);
  pinMode(4,OUTPUT);
  Serial.begin(9600);
  //EEBlue.begin(9600); //Default Baud for comm, it may be different for your Module. 
//Serial.println("The bluetooth gates are open.\n Connect to HC-05 from any other bluetooth device with 1234 as pairing key!.");
}
void loop()
{
 
 if(Serial.read()=='1')state = !state;
 {delay(2000);digitalWrite(3,state);}
// Feed any data from bluetooth to Terminal. 
/*if (EEBlue.available()) 
{digitalWrite(3,HIGH);
Serial.write(EEBlue.read());}*/

// Feed all data from termial to bluetooth 
/*if (Serial.available()) 
{
  digitalWrite(2,HIGH);
  Serial.write(Serial.read());
}*/

}

Credits

Sujata

Sujata

5 projects • 3 followers
FPGA developer based in India worked on image processing based edge applications in healthcare and security. Die-hard IoTian home automator

Comments