omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Upload arduino sketch with pythonista bluetooth serial

    Pythonista
    3
    10
    6891
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • smiddleton
      smiddleton last edited by

      Hey guys,
      New question, is there a way to write an arduino sketch, and then upload an arduino sketch with pythonista serial? Or do I need to write the code in pythonista, and flash the arduino firmware to be compatible with pythonista? Thanks in advance for the help.
      Steve

      1 Reply Last reply Reply Quote 0
      • smiddleton
        smiddleton last edited by

        Can anyone help? Even a starting point would be great.

        1 Reply Last reply Reply Quote 0
        • JonB
          JonB last edited by

          https://sites.google.com/site/wayneholder/inexpensively-program-your-arduino-via-bluetooth

          this will be a difficult project, since you would need to implement your own ble serial interface within pythonista, along with setting up the appropriate hardware. you won't find much help here I think.

          1 Reply Last reply Reply Quote 0
          • smiddleton
            smiddleton last edited by

            Thanks for the link. I was thinking since I can send commands through pythonista via Bluetooth, why not the actual arduino sketch?

            1 Reply Last reply Reply Quote 0
            • smiddleton
              smiddleton last edited by

              Thanks Jon B. I appreciate your answers. I found something called nanpy on github. I can't seem to load the module on pythonista on my iPhone. But could that work for loading programming arduino sketches direct from my iPhone?

              1 Reply Last reply Reply Quote 0
              • JonB
                JonB last edited by

                No, nanpy seems to be a way to essentially remote control your Arduino, not upload sketches. Not sure if it supports blue tooth.

                1 Reply Last reply Reply Quote 0
                • smiddleton
                  smiddleton last edited by

                  I think it does. I just can't get the module to work

                  1 Reply Last reply Reply Quote 0
                  • JonB
                    JonB last edited by

                    To be clear: nanpy be has two parts, firmware, and python part. The firmware gets loaded once. The python part communicates over serial, period. You could implement your own SerialManager subclass, that uses the cb module. But you would also need to modify the firmware (or use a Bluetooth to serial dongle).

                    From what I gather, nanpy doesn't let you upload new sketches, instead it has a general purpose sketch that exposes libraries of your Arduino.

                    There are a number of options for OTA programming, using esp boards or hc05... But they require extra hardware. Esp based solutions would work over WiFi, so might work more off the shelf since sockets will be easier to work with than Bluetooth...

                    1 Reply Last reply Reply Quote 0
                    • JonB
                      JonB last edited by

                      Just to touch back on this topic...

                      I've been playing around a bit with Arduino. I was setting up s2a (scratch to Arduino) and noticed that that and others use something called the Arduino Firmata, which is basically a way to remotely control the Arduino --everything from configuring pins to reads and writes, etc.
                      Then, you can effectively run code on the pc/or phone/iPad, etc that controls your hardware. So, you can prototype ideas, debug, etc, in real time, without recompiling/uploading.

                      See for example, this video of someone running a blink example using pythonista!
                      https://youtu.be/oa6PKhivIwE

                      1 Reply Last reply Reply Quote 1
                      • VerlaHiltz
                        VerlaHiltz last edited by VerlaHiltz

                        Hi....I downloaded something called pythonista 3. It's python 3 on the iPhone. I can get it to connect and send serial commands to the Bluno Beetle over bluetooth from my phone. Is there a way to write some kind of module for the pythonista 3 app, that would allow me to send an arduino sketch to the Bluno? I found something called nanpy which makes it possible for the arduino to be programmed with in or using python, but I can't get that module to work on the pythonista 3 app. Something about it being written for Linux.

                        printed circuit boards

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Powered by NodeBB Forums | Contributors