I have been researching a lot, and still have not gotten an answer!
Project Detail: I have set up a serial communication between the Arduino and python.
I collect data from Yahoo Finance with Python and send it over to Arduino for further actions such as displaying the information on an LCD screen...
import yfinance as yf import serial from time import sleep arduino = serial.Serial(port='/dev/cu.usbmodem14301', baudrate=9600)
What I want is once I turn on the Arduino (connecting it to my Mac via USB) it automatically executes the python script without me going to the terminal and running the python script.
- I tried to use
system(python3 Python.py)it did not work.
- There are methods such as PyMite which I believe is too complicated for my purpose.
- I get the idea that Arduino can not make the computer run a program unless I use a "proxy" like keystroke.
Hopefully, there is an easy solution.
I really appreciate any idea! Thank you.