Shop OBEX P1 Docs P2 Docs Learn Events
Wirelessly program P2 using FlexGUI and Raspberry Pi Zero W! — Parallax Forums

Wirelessly program P2 using FlexGUI and Raspberry Pi Zero W!

I'm not sure how practical this is, but it's wicked cool (at least to me).

Set up Raspberry Pi Zero W with VNC (you don't need VNC, but let's you see a virtual desktop instead of just a terminal window..).
Figured out how to get FlexGUI going.

Now, I can program the P2 using a wifi connection and a virtual desktop.
See setup and desktop screen below.

Had to overcome a few hurdles as I'm not so good with Linux.
See steps here: http://www.rayslogic.com/Propeller2/RaspberryPiZeroW.html
3024 x 4032 - 2M

Comments

  • Spiffy! Nice work. I am sure someone will use it.
  • jmgjmg Posts: 15,173
    Rayman wrote: »
    I'm not sure how practical this is, but it's wicked cool (at least to me).

    Set up Raspberry Pi Zero W with VNC (you don't need VNC, but let's you see a virtual desktop instead of just a terminal window..).
    Figured out how to get FlexGUI going.

    Now, I can program the P2 using a wifi connection and a virtual desktop.
    That's cool.
    Does that also manage DTR reset, or do you need to do that manually ?

  • RaymanRayman Posts: 14,646
    I think it has to be doing the DTR...

    I do have a problem where plugging in the P2 Eval board resets the Pi though...
    Thought was a fluke, but happened again. Maybe need to be careful about power/connection sequence..
  • wow....10 bucks.....how fast?
  • This setup would probably work pretty well with VS Code's remote workspace thingy. Probably better than VNCing into the Pi.

    Even better would be to write a script that replaces the regular loadp2 (with opening an SSH connection to the Pi, SCP-ing over the binary to a temp file and then running loadp2 on the Pi).
  • RaymanRayman Posts: 14,646
    mrchillin wrote: »
    wow....10 bucks.....how fast?

    The wifi seems plenty fast... The CPU itself is on the slow side for sure... But, compiling the simple examples is plenty fast enough.
  • RaymanRayman Posts: 14,646
    edited 2019-11-16 23:41
    I'm also using Visual Studio to remotely compile and execute c++ code on the Pi Zero.
    This seems to work fairly well for programs I want to run on the Pi.

    My next step is to connect Pi and P2 over SPI bus...
Sign In or Register to comment.