Dmitry Yu Okunev 74924eae99 Removed extra ":39" | vor 7 Jahren | |
---|---|---|
doc | vor 7 Jahren | |
receiver | vor 7 Jahren | |
sensor | vor 7 Jahren | |
.gitignore | vor 7 Jahren | |
.gitmodules | vor 7 Jahren | |
README.md | vor 7 Jahren |
An implementation of buttons that turns on LEDs via network (using UDP).
The network scheme:
The microcontroller pinout on a receiver:
The microcontroller pinout on a sensor:
Ethernet module: ENC28J60. Driver: https://github.com/xaionaro/stm32-enc28j60
Crystal oscillator: 16MHz
SPI1
is used to communicate with the ethernet module.
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
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)
cd ~/disabled-people-button/receiver/firmware
make
st-util &
gdb -x ~/.gdb-load-firmware build/*.elf