No Description

Dmitry Yu Okunev 74924eae99 Removed extra ":39" 7 years ago
doc b6ed4ec7fe Added MC pinouts 7 years ago
receiver 571cceedf2 Some bugfixes 7 years ago
sensor 571cceedf2 Some bugfixes 7 years ago
.gitignore f2b46c2622 polishing the repository 7 years ago
.gitmodules 43d2ed5f94 Copied sensor to receiver 7 years ago
README.md 74924eae99 Removed extra ":39" 7 years ago

README.md

Description

An implementation of buttons that turns on LEDs via network (using UDP).

Schemes and photos

Schemes

The network scheme:

scheme

The microcontroller pinout on a receiver:

receiver MC pinout

The microcontroller pinout on a sensor:

sensor MC pinout

Ethernet module: ENC28J60. Driver: https://github.com/xaionaro/stm32-enc28j60

Crystal oscillator: 16MHz

SPI1 is used to communicate with the ethernet module.

Photos

receiver photo

sensor

Quickstart

Preparing the environment

apt-get install -y gcc-arm-none-eabi gdb-arm-none-eabi git make cmake libgtk-3-dev libusb-1.0-0-dev build-essential dpkg-dev
https://github.com/texane/stlink
cd stlink
dpkg-buildpackage -rfakeroot
dpkg -i ../*stlink*.deb
cd
cat > ~/.gdb-load-firmware << EOF
target remote :4242
load
EOF

cd && git clone https://devel.mephi.ru/dyokunev/disabled-people-button
cd ~/disabled-people-button && git submodule update --init --recursive

Loading the firmware on a sensor

cd ~/disabled-people-button/sensor/firmware
make
st-util &
gdb -x ~/.gdb-load-firmware build/*.elf

(also you can change SENSOR_ID value in file Src/main.c)

Loading the firmware on a receiver

cd ~/disabled-people-button/receiver/firmware
make
st-util &
gdb -x ~/.gdb-load-firmware build/*.elf