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

long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]