SparkFun Forums 

Where electronics enthusiasts find answers.

General project discussion area - What have you built with your Micro View

Moderators: marcus@geekammo, Help@GeekAmmo

By Aravs7

I'm trying to send some data over to MicroView from a python script using PySerial and have it displayed. But it does not work. Anything that I'm missing here?

Here's my code:
Code: Select all
import serial
ser = serial.Serial("/dev/tty.usbserial-DA00SQTP",9600)
By Help@GeekAmmo
Hi Aravs7,

Since you did not include your sketch, I am unable to see what went wrong.

Below is a sketch to test your concept, it basically prints whatever send to MicroView's serial port on the OLED.
Code: Select all
#include <MicroView.h>

void setup() {

void loop() {
  char c;
  if (Serial.available()) {
    c =;
By Aravs7
Hi, There's no problem with MicroView because my sketch works when I try to send data via the Arduino IDE's serial monitor.

I'm trying to write a python script to send data to MicroView over the serial port. I use PySerial to send data to an actual Arduino microcontroller and it works but it does not work with MicroView. This may be because MicroView uses FTDI to send data over serial port. I'm trying to see if there are any available python libraries for ftdi.

By Help@GeekAmmo
Hi Aravind,

Maybe I was not clear in my reply. I actually used your Python code in the first post and my sample Arduino sketch. I can see character being printed on MicroView.

The FTDI has nothing to do with Python, Python uses the system's serial port. It does not know if it is a FTDI or ATMEGA serial port.

Please try your Python code in the first post together with my sample sketch.

The other thing that you need to watch out is please make sure that you are using the latest MicroView library.

If still not working, please post the following

1. Your python code in full
2. Your Arduino sketch in full
3. OS type & OS version
4. FTDI driver version
5. Python version
6. PySerial version

By Help@GeekAmmo
I forgot to mention that you might also want to have a delay after opening the serial port.

ser = serial.Serial("/dev/tty.usbserial-DA00SQTP",9600)
(add delay here, try with 1-2 seconds first)

The reason is because each time the code opens the serial port, depending on your OS, the driver will pulse the DTR line thus resetting the MicroView (Arduino should have the same behaviour). Window's system will pulse the DTR line a few times before it actually stopped. Linux OS from my system only one pulse.

So immediate sending of character will be lost because during the pulsing of DTR line the MicroView is being reset.

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? [...]