Search found 11 matches

by jahr
Wed Nov 09, 2022 8:44 am
Forum: Raspberry Pi microcontroller boards
Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
Replies: 74
Views: 3226801

Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!

1. Why doesn't my restart sensor code work? from sht30 import SHT30 restartsensor = SHT30() restartsensor.reset() Hello Rissy, even when reseting the sensor you need to initialize it with i2c: from machine import I2C, Pin from sht30 import SHT30 i2c=I2C(0, sda=Pin(4), scl=Pin(5)) restartsensor = SH...
by jahr
Tue Nov 08, 2022 8:10 am
Forum: Raspberry Pi microcontroller boards
Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
Replies: 74
Views: 3226801

Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!

Hello Rissy, remove (or comment out) all lines

Code: Select all

self.i2c.start()
and

Code: Select all

self.i2c.stop()
from the library. You may also clean up semicolons at end of lines ;-)
by jahr
Tue Jun 07, 2022 12:33 pm
Forum: Programs, Libraries and Tools
Topic: PC python script to run mpremote commands
Replies: 6
Views: 28307

Re: PC python script to run mpremote commands

PM-TPI wrote:
Tue Jun 07, 2022 9:53 am
jahr

Can't we make calls to mpremote directly
without needing to go back out to OS
Maybe. I've tried and did not succeeded. IMHO mpremote is not intended to be called as a module and pyboard.py should be used instead. For my use case, the method described was sufficient.
by jahr
Tue Jun 07, 2022 8:14 am
Forum: Programs, Libraries and Tools
Topic: PC python script to run mpremote commands
Replies: 6
Views: 28307

Re: PC python script to run mpremote commands

Hello, I'm using it this way def _call_mpremote(self, args): args.insert(0, 'mpremote') proc = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True) try: out, err = proc.communicate(timeout=None if self._timeout in (None, 0) else self._timeout) # etc. where args are argum...
by jahr
Fri Jan 07, 2022 12:51 pm
Forum: Programs, Libraries and Tools
Topic: mpremote & pyboard.py: some questions
Replies: 0
Views: 20639

mpremote & pyboard.py: some questions

Hello, First I would like to write few words why am I asking. Some (short) time ago I spoted Jupyter Notebook and I've found it quite usefull ;) I tried to find a way to use it with micropython. I've found two or three kernels, but either they didn't work at all or they were so clumsy that I decided...
by jahr
Fri Dec 10, 2021 8:59 am
Forum: Other Boards
Topic: [STM32H750] Working board definitions and some questions
Replies: 13
Views: 156214

Re: [STM32H750] Working board definitions and some questions

Hello SunWukong, try to flash firmware1.bin using the instructions on the page https://github.com/WeActTC/MiniSTM32H7x ... PI_Flasher. It worked well for me ;)
by jahr
Mon Sep 13, 2021 9:09 am
Forum: Other Boards
Topic: [STM32H750] Working board definitions and some questions
Replies: 13
Views: 156214

Re: [STM32H750] Working board definitions and some questions

JohnieBraaf wrote:
Mon Sep 13, 2021 8:50 am
You could also create a .bat script for it that calls the STM32_Programmer_CLI.exe
It looks good, thanks :)
by jahr
Mon Sep 13, 2021 8:24 am
Forum: Other Boards
Topic: [STM32H750] Working board definitions and some questions
Replies: 13
Views: 156214

Re: [STM32H750] Working board definitions and some questions

Is this define even necesarry? If I do not use the define, the value of 3 is used (see qspi.c in the stm32 port directory). Do you think that value is better? With regards to flashing, programming. If you use STM32Programmer it's easier to just use the hex or dfu file. Otherwise you weed need to fl...
by jahr
Mon Sep 13, 2021 7:17 am
Forum: Other Boards
Topic: [STM32H750] Working board definitions and some questions
Replies: 13
Views: 156214

Re: [STM32H750] Working board definitions and some questions

I've forgotten to mention how the firmware is downloaded to the board. First I've tried to use mboot. It compiled, I've flashed it and it ran. But flashing DFU was not possible - there was an error clearing the main memory. So i've abandonned the idea to use mboot (if somebody knows how make it work...
by jahr
Sun Sep 12, 2021 8:42 pm
Forum: Other Boards
Topic: [STM32H750] Working board definitions and some questions
Replies: 13
Views: 156214

[STM32H750] Working board definitions and some questions

Hello, I own some STM32H750 MCU based boards and I've found that there is no working board definition available. So I decided to write one by myself. It was not an easy task but finaly I ended having two working boards ;) They are available here and here . I'll describe main points for those who may...