arduino

How to use Arduino to fetch values output by Python script?

How to use Arduino to fetch values output by Python script? Question: I have a GUI that was created using the PySimpleGUI package in Python. Based on user selection from a dropdown menu, the script writes 4 integers to a csv file. (For example, the user selects option A, and the script writes (20, 30, …

Total answers: 1

Using PyFirmata with a simulator like SimulIDE

Using PyFirmata with a simulator like SimulIDE Question: I’m trying to learn PyFirmata, but don’t want to get all of the hardware I need to do so. Instead I want to use a simulator, right now I’m using SimulIDE. In order to use PyFirmata, a board has to be connected to a COM port. Is …

Total answers: 1

Parsing The Data from Rasberry Pi to Arduino for controlling 8 Relay

Parsing The Data from Rasberry Pi to Arduino for controlling 8 Relay Question: My project Bidirectional Communicate between Arduino and Rasberry Pi for implementing many AC Applications, sofar the read from Arduino to Rasberry Pi has been solved The only Problem now is parsing the data receving from the Rasberry Pi to the Arduino Mega, …

Total answers: 2

Function not working when hardcoding instead of using input()

Function not working when hardcoding instead of using input() Question: I’m working with Python on my PC, sending serial commands to an arduino which controls a certain number of stepper motors. However, in this function: # takes array of commands to send to motors (in order) and sends commmand arcodinlgy # each element of commands …

Total answers: 2

Clean way to send data struct from python to arduino?

Clean way to send data struct from python to arduino? Question: I’m working on a robot and I’d like to somehow send a command using pySerial to the arduino. The command would look like {MOVE, 60, 70} or {REQUEST_DATA}, where I’d have the arduino read in the first value, if it’s "MOVE" then it drives …

Total answers: 1

pyFirmata gives error: module 'inspect' has no attribute 'getargspec'

pyFirmata gives error: module 'inspect' has no attribute 'getargspec' Question: I’m trying to use pyFirmata, but I can’t get it to work. Even the most basic of the library does not work. I guess there is something wrong with the library code. from pyfirmata import Arduino,util import time port = ‘COM5’ board = Arduino(port) I …

Total answers: 3

Pyfirmata throws error after creating arduino object

Pyfirmata throws error after creating arduino object Question: I’m trying to start an arduino project but every time I try running it it throws an error. I think I might have gotten some of the setup wrong? I’ve uploaded the Standard Firmata Sketch to the Arduino Mega and installed pyFirmata. I can’t really think of …

Total answers: 1

why does not pyfirmata import?

why does not pyfirmata import? Question: I just wanted to make python and Arduino work together. I saw tutorial that showed that we need library called "Pyfirmata" to do it. when I type "pip install pyfirmata" in command prompt, it shows that the library is already installed. but when I type "import pyfirmata" in python …

Total answers: 1