This project contains multiple programs for M5Stick handling in Gensation. The main application is WiFiAPwithDoubleHttpServer.
This is the main program for M5StickC. It can be used to allow m:n communication between a fixed number of M5StickCs. One of the sticks opens a Wifi accesspoint with a fixed IP. The other sticks try to connect to this WIFI AP. All sticks open a webserver on port 80. This allows 3 basic functionalities which can be en-/disabled at compile time:
- Send the angle of the stick to all other registered sticks. This is an integration (and extension) of the Prost2gether program. See the description below for usage details!
- Send a signal to all other registered sticks and let them vibrate when button-A is clicked
- Show all registered sticks on the screen when button-B is clicked
Used to measure the the current angle (y axis) of the gyro of the stick. Mainly for testing purposes. The measured angle is used to draw a simulated surface of a liquid on the stick. If you attach the stick on a drinking glass, do it like that:
- the usb-connector of the stick should look downwards
- the stick should attached on the opposite side of the glasses drinking handle.
Used to test how long the M5Sticks can ping a server and process a simple answer from the server. The server code (node.js) is also contained.
0 - G0: ADC, PWM, touch, has the microphone connected to it
26 - G26: ADC, PWM, DAC
32 - ADC, PWM, touch, I2C: On the Grover connector -> andere Seite des M5Sticks im weißen Anschluss
33 - ADC, PWM, touch, I2C, on the Grover connector -> andere Seite des M5Sticks im weißen Anschluss
36 - G36: ADC, PWM, input only, has the ESP’s hall effect sensor
Vibration Motor -> M5StickC
IN -> G26
VCC -> 5V (out)
GND -> GND