Jump to content


  • Content Count

  • Joined

  • Last visited

Posts posted by hipsi

  1. I got to the bottom of my issue. Simple fix really. My arduino and pcDuino didn't have a common ground. When i added that it worked fine (using a logic level converter).


    For extra points, I also found that although my Python script would run fine with no errors, I couldn't get any serial output from it until I ran a serial sketch from the IDE.  Another silly NOOB mistake, I had neglected to add

    echo 3 > /sys/devices/virtual/misc/gpio/mode/gpio0
    echo 3 > /sys/devices/virtual/misc/gpio/mode/gpio1

    to my /etc/rc.local file so it the Python script would work on bootup without intervention.

  2. Thanks youkee, x11vnc did not appear to be installed in the image that I flashed.  I installed it manually, but as I mentioned, I was not able to get it to load automatically on boot.  I have given up trying for now as I have more important things to work on and have just resigned myself to loading it from ssh whenever I want to use it.

  3. I've confirmed baudrate and tried swapping the pins.  When I ls - /dev/ttys1 I get 

    crwxrwxrwx 1 linaro linaro 3, 49 Jan  1  2010 /dev/ttys1

    but when I run my python code (which works for ttyUSB0) but changed for ttys1 I get

    SerialException: could not open port /dev/ttys1: [Errno 5] Input/output error: '/dev/ttys1'

    my python code is

    #!/usr/bin/env python
    import serial
    import cgitb
    import cgi
    ## Select and configure the port
    myPort = serial.Serial('/dev/ttys1', 9600, timeout = 10)
    form = cgi.FieldStorage()
    serialData = form.getvalue('input')
    print "Status: 200 OK", "\n\n";
    ## Write the value retrieved from the POST form to the serial port
    ## Declare serialReturn as the variable to read a 3 byte packet from serial port
    serialReturn = myPort.read(3)
    ## Check if the serial port returns clr or CLR
    if (serialReturn) == "clr" or (serialReturn) == "CLR":
    ## Send line to the HTML file
    print "The display is currently clear"
    ## else send this line including the value read from serial.
    else: print "The current displayed wait time is",(serialReturn),"minutes"
    ## close the serial port so it can be used by other stuff.

  4. I have a V3 nano and trying to use the uart pins to send serial to my Arduino nano RX pin, but to no avail.  I have it working with USB connection but I'd prefer using the pins as it will all be PCB mounted.  I tried a loopback test on the uarts (linking the tx to rx) on the PCduino and this works fine.  

    My initial attempt was to connect the tx pin on the PCduino directly to my Arduino nano RX, (since it'll be 3.3v into my Arduino, shouldn't be a problem).  I didn't get any response on the Arduino at all when sending from the PCduino serial monitor in the IDE.  I then tried connecting the rx pin to the tx on my Arduino through the Linksprite voltage converter shield.  Still doesn't work .  Truth is I don't need to send anything from the Arduino to the PCduino anyway.  

    I can confirm if I send serial through the serial monitor using USB the Arduino does receive it.


    any ideas???

  5. I updated my PCduino 3 Nano to Ubuntu 14 using the latest image on the download page (pcduino3b_nano_dd_1404.zip).  It all went fine apart from one key difference from my out-of-the-box experience.  It didn't have VNC installed.  I followed this instruction to install and configure it http://www.electrodragon.com/w/VNC_visit_pcDuino and although it loads manually (from command or GUI) I can't get it to load automatically on boot.  It doesn't matter if I tick the option in the GUI to 'allow connections'.  Next time I boot up, that option is unselected again.  Any tips?

  6. Can someone please help me understand.  I have just bought a PCDuino V3 Nano to operate a 32x16 LED matrix display.  This display only has an Arduino library.  My plan is to run a web server running a page on which you can submit a string of text.  That text will then show on the display.  


    I presumed with the PCDuino that I would be able to run an Arduino sketch to operate the display, and at the same time the PC side of the device could run the web server.  Then whatever string was submitted on the webpage could be passed into the Arduino sketch and therefore will update on the display.  I can't however find any evidence that there is a way to operate both simultaneously and pass variables between.  Do I misunderstand how this device works or is it actually possible?