New answers tagged

0

You are missing quotes on the second parameter of sprintf: sprintf(buffer, "%d %d", a, b);


1

As stated in Majenko's answer, you would need an interpreter running on the Arduino. Python is too large to run on an Uno, although it can run on some more powerful microcontrollers. A Web search for Arduino interpreters yields quite a few promising options. I have not tested any of them: Firmata Forth another Forth-ish language Lisp BASIC a C-like language ...


4

Unless you want to implement some form of scripting engine, you can't. Arduino code is compiled code, not interpreted code. There is no way of converting text into runnable code, since that is done by your computer at compile time, not by the Arduino at run-time. The only thing you could possibly do is write some form of scripting engine which reads text and ...


1

I figured out the problem. The for loop was writing one byte at a time, which probably wasn't fast enough and caused a timeout in the arudino. The code is now: page = 0 for x in range(128): # 128 pages in 32K eeprom datalst = [] for i in range(256): datalst.append(data[(page * 256) + i]) ser.write(datalst) #wait until ...


1

After testing the server on the host machine using an additional computer, I was able to produce the desired output. I would suspect it is an issue within the library or mis-use/understanding. I found a post that suggested the library was the problem and ended up using this library instead. Using the example implementation , I was able to achieve the desired ...


Top 50 recent answers are included