SparkFun Forums 

Where electronics enthusiasts find answers.

Hardware or product specific questions are best asked here.
#213674
Artemis Nano print to serial port and receive in python in windows.

I have printed and received lines of text a csv format as a data logger.

I am fallowing this tutorial
https://makersportal.com/blog/2018/2/25 ... g-pyserial
with this code
Code: Select all
import serial
ser = serial.Serial('/dev/ttyACM0')//COM8 I put here because I am running windows. 
ser.flushInput()

while True:
    try:
        ser_bytes = ser.readline()
        decoded_bytes = float(ser_bytes[0:len(ser_bytes)-2].decode("utf-8"))
        print(decoded_bytes)
    except:
        print("Keyboard Interrupt")
        break
in anaconda s orange python mpdule

I want to use oranges ANN widgets.

I have orange updated puthon and such in anaconda updated and py serial installed.

It shows keyboard interupt but not a line of the sensor data. :?:
 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum