Before proceeding, there's few things that i assume yo already have:
- Discord bot
- Arduino board/generic
- Arduino software
THe package that you should have for python:
- discord.py
- pyserial
The Steps:
- Open the minimalduinobot.py program
- copy your Bot(discord bot) token to the program
- open your arduino software
- upload the code duinoreceiver.ino to your board
- keep the usb connection
- on the minimalduinobot.py program on line 7, you need to add the communication port from your board connected, example "COM5"
- run the python script
- go to your server that has your discord bot
- type the prefix command "!gf" followed by "on" or "off", you can change the prefix later.
- wait for python and arduino process it
- the onboard LED should glow after you send the command "!gf on"