Shop OBEX P1 Docs P2 Docs Learn Events
Embedded Python? — Parallax Forums

Embedded Python?

ErlendErlend Posts: 612
edited 2015-02-16 04:17 in General Discussion
Triggered by @Heater mentioning espruino.com - JavaScript on a board - in an other forum thread, I did a search for Python on a board, and sure, I got his:
https://www.kickstarter.com/projects/214379695/micro-python-python-for-microcontrollers

Recently I started learning Python just for fun, but it is not so rewarding whith only keyboard/screen as IO. How much more fun to run servo's or blink LEDs from day one?
I am thinking that a board such as this would boost my learning, and that is probably also true for other Python beginners with a heart for real-world IO.

Erlend

Comments

  • LeonLeon Posts: 7,620
    edited 2015-02-16 01:29
    The Raspberry Pi is ideal. Lots of I/O boards are available.
  • Heater.Heater. Posts: 21,230
    edited 2015-02-16 01:43
    I was hoping my colleague was getting a few MicroPython boards so that I could try them out. He is a Python head so I thought I'd let him get them as I already backed the Espruinos. Seems he has not done so yet so I might have to. I was backing down on that because I have a rule about not using languages whose names start with P, they are universally terrible:) But curiosity may get the better of me and Python is the least bad of the "P" languages.

    The Espruino and MicroPython are an amazing story. They both hit kickstarter around the same time. They both had exactly the same idea using the same micro-controller just with different languages. They both got backing ten times more than they asked for! Turns out they both come from guys in Cambridge. But those guys had never heard of each other before!

    I'm totally with you about the flashing of LEDs and wiggling of servos as a way to get drawn into programming.

    Leon is right, the Raspberry Pi is another way to easily get started with these things.
  • ErlendErlend Posts: 612
    edited 2015-02-16 01:59
    Cambridge. The word alone inspires awe in me. I have been a follower since 83'. Acorn BBC+, Psion, ARM,... It is only right I should get a MicroPython too. Dont know about bad P, though. Did a lot of Delphi Object Pascal for a while. Brain damage, maybe.

    Erlend
  • Heater.Heater. Posts: 21,230
    edited 2015-02-16 02:07
    Oh yeah. Go for it. Get an Espruino as well:)
  • GadgetmanGadgetman Posts: 2,436
    edited 2015-02-16 02:59
    The Espruino is out in a new version 'Espruino Pico'...

    Yeah, I have the MicroPython, the Espruino and are waiting on the Pico to arrive.
    They're cool...

    Not quite as cool as a Propeller, but then again, what is?

    Thinking of using the MicroPython together with some micro servos and NanoBeams to build a multi-segmented robot.
  • Heater.Heater. Posts: 21,230
    edited 2015-02-16 03:14
    The neat thing about the Raspberry Pi is that you can connect a Propeller directly to it's onboard UART on it's GPIO header and program the Propeller with it. No PropPlug or other adapters required. SimpleIDE and PropellerIDE work there just fine. Your robot, or whatever, with a Pi on board becomes a self hosting dev environment for the Propeller.

    I did wonder if it's possible to program a Prop from an Espruino once I have my propeller loader in JavaScript working. I'm guessing there is not enough speed and or RAM though.
  • ErlendErlend Posts: 612
    edited 2015-02-16 03:26
    Gadgetman wrote: »
    ...Not quite as cool as a Propeller, but then again, what is?
    ...
    I hasten to concur, lest anyone starts thinking I have lost my love for Propeller. I mean 8 cogs?!

    Erlend
  • RoadsterRoadster Posts: 209
    edited 2015-02-16 04:17
Sign In or Register to comment.