项目作者: MartZOZ

项目描述 :
Skole oppgave. Koble opp arduino med python skript som kommuniserer med adafruit dashboard. Toggle knapp fra adafruit.
高级语言: C++
项目地址: git://github.com/MartZOZ/IoT_Adafruit.git
创建时间: 2020-11-20T07:28:38Z
项目社区:https://github.com/MartZOZ/IoT_Adafruit

开源协议:

下载


IoT_Adafruit

This is a project for school.
Connect an adafruit dashboard to control an LED on your arduino board.

Step-by-step

Install PyFirmata, this requires pip to be installed. To install PyFirmata, open CMD and run “pip install Pyfirmata”, this should run a quick install, some instances of python already come installed with pyfirmata.

Connect your arduino board with an LED

Download StandardFirmata.ino

Upload the code to your arduino

Download Adafruit.py

Change the adafruit key to your own (the one in the script will not work and is simply a placeholder)

Create one or two blocks, one toggle, and another can be a value

rename the toggle block feed to “digital”, and rename a value block to “counter”

Run the python script

if you’ve done everything correctly you should be able to control an LED with the toggle button on your dashboard :)

You can use the “Mysql with adafruit (published).py” file I’ve released if you want to upload your logs to a mysql database.