Alfa
Published © CC BY-SA

Hand Protection Electronic Gloves Based on Neosensory Buzz

Moving sensing, by using Neosensory's feedback wristband Buzz.

IntermediateProtip2 hours323

Things used in this project

Hardware components

Neosensory Buzz
Neosensory Buzz
×1
Arduino Nano R3
Arduino Nano R3
×1
Hall Effect Sensor
Hall Effect Sensor
×1

Software apps and online services

Arduino IDE
Arduino IDE
Edge Impulse Studio
Edge Impulse Studio

Story

Read more

Code

Code

Arduino
// receiver.pde

#include <VirtualWire.h>


int indicator = 9; // it can also be a buzzer
int Power = 10; // to control power to the machine/device


const int receive_pin = 11;


void setup()
{
    delay(1000);
    Serial.begin(9600); // Debugging only
    Serial.println("setup");

 
    vw_set_rx_pin(receive_pin);
    vw_set_ptt_inverted(true); // Required for DR3100
    vw_setup(2000);  // Bits per sec
    vw_rx_start();       // Start the receiver PLL running

  
    pinMode(indicator, OUTPUT);
    pinMode(Power, OUTPUT);
    digitalWrite(indicator, LOW); 
    digitalWrite(indicator, LOW); 
    
}

void loop()
{
    uint8_t buf[VW_MAX_MESSAGE_LEN];
    uint8_t buflen = VW_MAX_MESSAGE_LEN;

    if (vw_get_message(buf, &buflen)) // Non-blocking
    {
    int i;

     
    // Message with a good checksum received, dump it.
    Serial.print("Got: ");
    
    for (i = 0; i < buflen; i++)
    {
        char c = (buf[i]);

        if( c == 'j') // for right side
    {
       digitalWrite(Power, HIGH); 
      digitalWrite(indicator, LOW); 
      Serial.print(c);
        Serial.print(' ');
           
    }

 if( c == 'h') // 
    {
      
      digitalWrite(Power, LOW); 
      digitalWrite(indicator, HIGH); 
      Serial.print(c);
        Serial.print(' ');
           
    }  
   
    if( c == 'm')
    {

            Serial.print(c);
        Serial.print(' ');
           
    } 

    }

    }
}

Credits

Alfa

Alfa

32 projects • 53 followers

Comments