Search found 21 matches

by scardig
Mon Apr 19, 2021 2:40 pm
Forum: Other Boards
Topic: [Espruino pico] Info about power/data connection
Replies: 0
Views: 1828

[Espruino pico] Info about power/data connection

Hello, I need to install micropython on the Espruino Pico and I need to use pin B6 and B7 (as here https://www.espruino.com/Pico ) to communicate with a UART device but I need to know if such pins will became a console mirror once only power is fed via usb (only +5V and GND connected). Is this the c...
by scardig
Wed Jan 29, 2020 8:39 am
Forum: MicroPython pyboard
Topic: SPI bus reading in background
Replies: 1
Views: 1765

SPI bus reading in background

Hello, we have a Pyboard 1.1 plus an IC connected to it via SPI bus. We need to read some data from the IC at 10 Hz and store it so that my main loop (that run at 2Hz) is able to read such data, perform some calcs, free memory then send the results via serial to another module. We thought to read SP...
by scardig
Mon Sep 09, 2019 12:08 pm
Forum: MicroPython pyboard
Topic: Wiznet 5500 (wiz850io): force to 10mbit
Replies: 0
Views: 1809

Wiznet 5500 (wiz850io): force to 10mbit

I'm currently using a wiz850io module with WIZNET5K drivers and I need to force such board to 10mbit. I know it's possible via a sw configuration: do you have a quick hint to the right setting ?

Tnx
by scardig
Thu Jan 03, 2019 6:33 pm
Forum: MicroPython pyboard
Topic: Run a function periodically
Replies: 4
Views: 3318

Re: Run a function periodically

Philosophix wrote:
Thu Jan 03, 2019 4:49 pm
In that case the cose seems reasonable. Is it not working?
It's working well :) . I was asking if you can provide a review of the code to spot problems / provide a better solution.

Tnx
by scardig
Thu Jan 03, 2019 3:38 pm
Forum: MicroPython pyboard
Topic: Run a function periodically
Replies: 4
Views: 3318

Re: Run a function periodically

Every 200ms I need to read a sensor value via I2C and forward it via ethernet (the run time of my function should be << 200ms but something may go wrong). So every time the timer fires, master_timer is set to 1 and the IF statement in the main loop will continously check for it so that my funtion wi...
by scardig
Thu Jan 03, 2019 9:12 am
Forum: MicroPython pyboard
Topic: Run a function periodically
Replies: 4
Views: 3318

Run a function periodically

Hello, I need to run a function every 200ms so here is some code. Am I on the right way ? def tick(timer): global master_timer if master_timer == 1: print("Alert") # exit/reset/.... master_timer = 1 def main(): global master_timer master_timer = 0 tim = pyb.Timer(4, freq = 5) tim.callback(tick) whil...
by scardig
Wed Nov 07, 2018 4:02 pm
Forum: MicroPython pyboard
Topic: Pyboard and SMBUS
Replies: 1
Views: 2485

Pyboard and SMBUS

Hello, I have to use a Pyboard V1.1 to monitor a LTC4015 Battery charger (datasheet here: https://www.analog.com/media/en/technical-documentation/data-sheets/4015fb.pdf ) that can be controlled via Smbus: is the I2C lib of the pyboard suitable for this purpose or do I need to adapt it given the requ...
by scardig
Thu Nov 01, 2018 9:52 am
Forum: MicroPython pyboard
Topic: Pyboard + WIZ850io
Replies: 0
Views: 1379

Pyboard + WIZ850io

Hello, I'm using a Pyboard1.1 + a WIZ850io ethernet module. I installed a pyboard firmware with network module and followed instructions at: http://docs.micropython.org/en/latest/library/network.WIZNET5K.html but with no success, that is: nic = network.WIZNET5K(pyb.SPI(1), pyb.Pin.board.X5, pyb.Pin....
by scardig
Wed May 02, 2018 5:51 pm
Forum: MicroPython pyboard
Topic: Advices for "mission-critical" applications
Replies: 4
Views: 3239

Re: Advices for "mission-critical" applications

I think you need to clarify what you mean by "dangerous situations". If you mean danger to life and limb (fire, electrocution and suchlike) you need much more specialist advice, both technical and legal, than you are likely to receive in this forum. Even if the only risk is of (say) burning out a m...
by scardig
Tue May 01, 2018 2:24 pm
Forum: MicroPython pyboard
Topic: Advices for "mission-critical" applications
Replies: 4
Views: 3239

Advices for "mission-critical" applications

Ok, maybe "mission-critical" is a bit exagerated but I refer to real world applications where a failing control unit may lead to a damage to the system. As an example: if at some point in time my main script will crash it will leave the pyboard in the last state (ie timers go on, outputs will remain...