Sunday 3 January 2021

HomeAssistant - ESPHome IR Controller SkyQ

 Using ESPHome IR for SkyQ

Using the ESPHome project, the Infrared plugin allows me to control my TV, Soundbox and SkyQ devices quite easily.
 

The Build

A simple build.. two IR transmitters and an optional IR receiver which I used to read the codes from my existing IR remote.

The ESP32 doesn't source enough current to light up the LED's to be useful, but a simple transistor driver solves that. I wont elaborate more as here is a link to a website that explains it better. Driving an IR

The diagram I used

The YAML

 
The IR.YAML link below contains the configuration for many of the keys.
 
Download the file and edit. Set your SSID and password. Customise for your GPIO input/outputs and run.
 
 

HomeAssistant




 

Saturday 2 January 2021

ESP32 Measuring gait symetery for performance - People or Horses

 Gait symmetry analysis using ESP32




Why!

I was pondering a method that could tell if I was favouring one side or the the other when running. For horses, it can tell if its lame as the symmetry whilst trotting will be mismatched.

Design

Using an ESP32, it has a nice MESH feature called ESPNOW. This allows an almost realtime transmission of data between nodes.

For this project, a MAIN node is plugged in to a PC via USB. This node controls the outstations.

NODEs are ESP32 devices with gyro sensors attached. These have the capability to record the X, Y and Z axis of motion,  but for this - I am only using one axis. (Although all 3 can be used as its the difference in the 2 sensors that are used)

Units have batteries, chargers and all the paraphernalia to last a few hours.


Taking measurements

Tucking the units in to my sock, I done a quick few laps of the garden. They weren't comfortable, but thats the nature of the prototype

Data

Making sense of the noise, I picked a simple FFT.  the Data is from myself running in my garden for about 30 seconds. Samples are at 10Hz for left and right leg.

 FFT

Using the data collected, the FFT plots for the left and right leg.