Search found 53 matches

by zaord
Thu Feb 11, 2021 11:14 am
Forum: General Discussion and Questions
Topic: I2C instances and multiple devices
Replies: 5
Views: 2901

Re: I2C instances and multiple devices

if type(side_str) is str: sst = side_str.upper() if sst in {'X', 'Y'}: self._mpu_i2c = pyb.I2C(sst, pyb.I2C.MASTER) else: raise ValueError('I2C side must be X or Y') elif type(side_str) is pyb.I2C: self._mpu_i2c = side_str Hi Peter, I try to understand what your wrote here. I try to use the same bu...
by zaord
Thu Jan 21, 2021 3:36 pm
Forum: MicroPython pyboard
Topic: Pyboard.py raw repl : passing Micropython variable to Python
Replies: 1
Views: 149

Pyboard.py raw repl : passing Micropython variable to Python

Hi here, I am still on the way to conquest pyboard.py script within raw repl. I try to get variable from micropython raw repl into python env. This is my script : import sys import time from rshell import main from rshell import pyboard pyb = pyboard.Pyboard('COM4') pyb.enter_raw_repl() sys.stdout.w...
by zaord
Thu Jan 21, 2021 12:08 pm
Forum: MicroPython pyboard
Topic: Pyboard.py raw repl bug
Replies: 2
Views: 374

Re: Pyboard.py raw repl bug

this works !
by zaord
Fri Jan 08, 2021 8:22 pm
Forum: MicroPython pyboard
Topic: power supply questions
Replies: 7
Views: 843

Re: power supply questions

But here, I connect only the GND ... I use the DAc to control a 3 phase brushless motor for a fan.
I have nothing on VIN because I just need the reference ..
I have connected the fan drinver ground to AGND of the micropython card.

Should I try something ?
by zaord
Thu Jan 07, 2021 9:08 am
Forum: MicroPython pyboard
Topic: power supply questions
Replies: 7
Views: 843

Re: power supply questions

I have the same issue than https://forum.micropython.org/viewtopic.php?f=6&t=1106&p=6594#p6594 I found that if I power on the psu before the usb, I have no problem at all, but if I connect The usb before the PSU I get problem... Maybe I should make a OR diode circuit. How can I do this ? Do I need t...
by zaord
Mon Dec 14, 2020 3:07 pm
Forum: MicroPython pyboard
Topic: power supply questions
Replies: 7
Views: 843

Re: power supply questions

If I connect any power supply and make just the connection between Pyboard connected with USB and just the GND of the PSU, that makes troubles. I Have 230 mV between the GND of the Pyboard and the GND on the PSU when unwired. Maybe mass loops ? I ordered a usb to usb for isolating my pyboard to my U...
by zaord
Sun Dec 13, 2020 6:19 pm
Forum: MicroPython pyboard
Topic: power supply questions
Replies: 7
Views: 843

Re: power supply questions

Hi, I still have a problem with the GND. If I connect the Pyboard avec USB to my computer and If I need to use the DAc 1 (X1) to control alother device supplied with an external power supply, I need to have the same GND I think. But when I do that, my mouse and all the other usb devices disconnect a...
by zaord
Fri Dec 11, 2020 12:07 pm
Forum: Other Boards
Topic: Is it possible to execute a micropython code on Rasperry Pi ?
Replies: 11
Views: 2060

Re: Is it possible to execute a micropython code on Rasperry Pi ?

I finally use a normal computer with Python and controll the micropython with python via the wonderfull micorpython.py tool !
This changed my life :) :)

What are the limitations of using the pyboard.py tool ? Maybe I did not think to all issues...
by zaord
Fri Dec 11, 2020 11:59 am
Forum: General Discussion and Questions
Topic: Controlling the micropython repl from Python with PySerial
Replies: 6
Views: 3646

Re: Controlling the micropython repl from Python with PySeri

Thank you for the pyboard.py example, looks like Ctrl+a, Ctrl+b Ctrl+c Ctrl+d all are implemented, perfect!
How can you send a ctrl+a in raw repl ???

Something like pyb.exec("ctrl+a") ?
by zaord
Fri Dec 11, 2020 11:57 am
Forum: General Discussion and Questions
Topic: Controlling the micropython repl from Python with PySerial
Replies: 6
Views: 3646

Re: Controlling the micropython repl from Python with PySeri

2) on my mac in other embedded projects, usually \n does not cut it, I needed '\r\n' to print a newline That's normal for serial. \r returns the cursor to column 1 of the current line. \n advances the cursor to the same column of the next line. I solve this like that : import sys from rshell import...