Skip to content

Aclopes/pyArduino

Repository files navigation

Arduino Experiments

Python programs to terst with Arduino, using the Lib pyFirmata.
To use, firstgo to Arduino page and install the Arduino Agent.
The Arduino IDE is a good idea too, since you can use in original language, but you can use the web IDE

create the Virtual Environment as usual
python -m venv venv

and intal the lib pyFirmata
pip install pyfirmata

and joy

Reference

https://realpython.com/arduino-python/

Simple Blink

A blink led with python with a for

Simple Blink 2

With different sequence Arduino Uno sketch with breadboard

Digital Inputs

Use button to capture digital inputs write in the terminal when click.

Digital inputs 2

same as above but blink the led Arduino Uno with breadboard digital Inputs

read Analogic Input

read the potentiometer and print on terminal the value

Read Analogic Input 2

same as above but control the interval between 2 leds(the scketch bellow shows just one led)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages