Skip to content

A hardware toolkit consisting of input and output components to develop interactive assistants

Notifications You must be signed in to change notification settings

Freigeistlab/IOTUnits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sourcecode for ESP8266 NodeMCU-lolin v3 based hardware units


LED unit

LED unit

Ultrasound based distance unit

Ultrasound based distance unit

Rotary encoder unit

Rotary encoder unit

Scale unit (sense when tape is teared)

Scale unit (sense when tape is teared)

Button unit

Button unit

API calls

Unit Name Route Data Return Description
all / {ip:String, port:String} Code:200, {UNIT_NAME:String, ID:String} Units will listen on UNIT_PORT until they receive server IP and port for sending values
LEDUnit /set {index:String, r:String, g:String, b:String} Code:200, String set LED at index to color {r,g,b}
LEDUnit /set {r:String, g:String, b:String} Code:200, String set all LEDS to color {r,g,b}
LEDUnit /handleConfigure n/a Code:200, String not implemented, does nothing
buttonUnit, distanceUnit, encoderUnit, lightSensUnit, scaleUnit /handleConfigure {end} Code:200, String shut down server, no more routes accessible (does not stop unit from sending sensor readings)
distanceUnit, encoderUnit, lightSensUnit, scaleUnit /handleConfigure {threshold:String, sensitivity:String, mode:String} Code:200, String set threshold, sensitivity and mode



Modes

Modenumber Modename Description
0 BOOLEAN send updates when sensor reading crosses threshold (rising and falling flank)
1 CONTINOUS send updates when sensor reading changes by more than sensitivity
2 IDLE do not send updates



Defaults

Unit Name Parameters Default
all UNIT_PORT 43432
distanceUnit mode, sensitivity, threshold CONTINOUS, 1, 100
encoderUnit mode, sensitivity, threshold CONTINOUS, 100, 1000
lightSensUnit mode, sensitivity, threshold BOOLEAN, 5, 50
scaleUnit mode, sensitivity, threshold CONTINOUS, 10, 1000

About

A hardware toolkit consisting of input and output components to develop interactive assistants

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published