Control Arduino with Python using Firmata / PyFirmata

preview_player
Показать описание
Do you want to control an Arduino using Python, well you kind of can using Firmata and PyFirmata. I say kind of can because you will need another device running Python to control the Arduino as a remote device using the Firmata Protocol.

For more information, tutorials, parts and more visit:

To join the membership at bronze, silver or gold levels, head over to

Enjoy this video? Buy me a coffee!

Follow me on Instagram - @kevinmcaleer

Follow me on Twitter - @kevsmac

Join the Facebook group - Small Robots

Music by Epidemic Sounds

Pyfirmata Python Code on GitHub:

#Arduino​ #Python​ #Robotics
Рекомендации по теме
Комментарии
Автор

00:00 - Intro
00:40 - Session Goals
01:29 - Hardware Setup
01:45 - What is Firmata
03:19 - How it works
04:58 - Python PyFirmata Library
05:52 - Channel Announcements: Like, Comment and Subscribe
06:41 - Channel Announcements: New Video Every Sunday
06:49 - What we can do with Firmata?
07:44 - Why do we use Firmata?
08:45 - How to install Firmata on Arduino
09:25 - Upload Firmata Standard on Arduino
09:35 - Change to Bluetooth Serial Port (Remote Update)
10:29 - Demo Time
15:02 - Demo Time - Visual Studio Python Code (blink example)


I will continue the rest of the chapters if I watched the remaining of the video.

i-negm
Автор

Awesome stuff. Thank you. people like you help us get more closer in building things our own and pursuing our passion.

nunirvana
Автор

Nice video. well structured, informative and not rushed. just got yourself a new sub!

thebravo
Автор

Brilliant. I think Firmata may be what I've been looking for to control model railway layouts, with a Pi to control everything, and several Arduinos connected by USB or Bluetooth to drive servos, stepper motors and motor drivers. It would save a lot of work writing individual sketches for each Arduino. Even better, it looks like I could use Node-RED instead of writing any Python code, at least to get it all working, then write a really flashy Python program later if I want to. Node-RED could work for robots too.

EcoHamletsUK
Автор

That is very interesting. I did not hear about Firmata and it looks like an easy way to communicate between any Pi device to Arduino. Thanks.

iKostanCom
Автор

it brilliant just what i needed and can you please make like a small crash course on projects with python language along side firmata

NovaLink-v
Автор

Thanks a lot I have been looking for that explanation!!

Lord-Black__
Автор

Hey this is very useful content, good work

XPowerfullXPlayerX
Автор

awesome tutorial sir, couldn't be better.
i was wondering if this was applicable to other types of arduinos (other than the mega and uno)

omarsalah
Автор

very informative turorial. Can we use pyfirmata to control the robot without it being plugged into the computer (from battery power)?
since the code is working form the PC directly and not uploaded on the Arduino itself.

BUILDwithMAULIK
Автор

If you disconnect the Arduino from the device, the code does not work with another power source
I have to plug it into the computer
What is the solution to permanently store the code on the Arduino like the Arduino IDE?
I thank you very much for this excellent explanation :)

عبدالرحمنالمرنخ
Автор

OMG u know a lot how I wished I had a raspberry pi and an Arduino mega

TheCeremoniesOfIsrael
Автор

I'm wondering how to use adafruit I2C sensors like the TSL2591 with Firmata. Would I need to recreate the circuitpython library in firmata?

NicholasWong-vvnn
Автор

Hello Mr McAleer. I'm really interested in this topic. could you tell me, does the Arduino have to stay connected to the PC for the pyfirmata code to work? or can the system operate just fine without being continually connected? (of course, after the code is uploaded)

michaeljwosniak
Автор

Quick question, how do you import an arduino library in out python sketch using PyFirmata?

JesusGonzalez-rdqn
Автор

Thank you for this video. Will it work for Python 3.12?

AdamKaszok
Автор

Thank you so much for the tutorial, i loved it! So... to work arduino with python the arduino need to be connected with a pc right?

yefriencarnacion
Автор

I can't save the program in Arduino board like Arduino IDE . The project doesn't work without pc

mohamedjbaili
Автор

How to get input from dht11 sensor to python using pyfirmata

hinasahamedmohamedsaleem
Автор

How to use resetFunc() from Arduino IDE in python to reset the arduino without actually pressing the physical button

jackthorat
welcome to shbcf.ru