Search found 2072 matches

by jimmo
Tue Jun 04, 2019 5:44 am
Forum: Other Boards
Topic: BLACK_F407VE: @micropython.native in frozen bytecode decorator build fails
Replies: 6
Views: 1300

Re: BLACK_F407VE: @micropython.native in frozen bytecode decorator build fails

Looks like a bug. I've raised https://github.com/micropython/micropython/issues/4829 with more info.

Unfortunately I don't understand the new native .mpy encoding well enough to send a PR.

Sorry I don't have a good workaround for you right now.
by jimmo
Tue Jun 04, 2019 1:30 am
Forum: ESP8266 boards
Topic: Mirabella Genio ESP8266 RGB light bulb
Replies: 3
Views: 888

Re: Mirabella Genio ESP8266 RGB light bulb

I am regretting my over-investment in ZigBee :)
by jimmo
Tue Jun 04, 2019 1:28 am
Forum: Programs, Libraries and Tools
Topic: how run IRQ() IN IRQ()
Replies: 12
Views: 2148

Re: how run IRQ() IN IRQ()

pin_starter= Pin(5 ,Pin.IN ,handler = enter_password() ,trigger = Pin.IRQ_RISING) You need to not have the "()" after enter_password. pin_starter= Pin(5 ,Pin.IN ,handler = enter_password ,trigger = Pin.IRQ_RISING) (Otherwise this is the same as using the `irq` function later. The second irq is alwa...
by jimmo
Tue Jun 04, 2019 1:19 am
Forum: General Discussion and Questions
Topic: PyBoard Timer Question
Replies: 9
Views: 2376

Re: PyBoard Timer Question

I guess I could use Timer.OC_TOGGLE and half the period to get the same frequency. Then set the counters to 0 each loop (Thanks for that tip btw) I'm not quite sure I follow sorry... However, that thread gave me a possible idea of how you could solve both problems (synchronising the ADC loop with t...
by jimmo
Mon Jun 03, 2019 10:33 am
Forum: ESP8266 boards
Topic: HX711 Sensor
Replies: 1
Views: 532

Re: HX711 Sensor

It sounds like people have used this sensor successfully. Here are some starting points:

viewtopic.php?t=5931

viewtopic.php?t=2678
by jimmo
Mon Jun 03, 2019 10:26 am
Forum: Pyboard D-series
Topic: Prototyping board with 20-pin mezzanine plug/s
Replies: 9
Views: 1992

Re: Prototyping board with 20-pin mezzanine plug/s

A Wbus-dip32 which brings out the pins exposed on the Pyboard D edges to a 0.1" pitch with a 0.6" row spacing akin to the Wbus-dip28 Yup, agreed! I would use this too. Just to confirm that we're on the same page: 32 = X*12 + Y*12 + 8 (gnd x2, Vin, Vbat, boot0, vusb, 3.3, reset) Would you match the ...
by jimmo
Mon Jun 03, 2019 9:56 am
Forum: General Discussion and Questions
Topic: PyBoard Timer Question
Replies: 9
Views: 2376

Re: PyBoard Timer Question

Therefore when observing the PWM pin, the phase may be out by 10%. Yup, that's true. And yeah, like you say, the sample rate isn't great either. However, the phase issue is not as bad as it would be if the PWM source came from somewhere else. If you choose the frequencies to be multiples of each ot...
by jimmo
Mon Jun 03, 2019 5:56 am
Forum: General Discussion and Questions
Topic: PyBoard Timer Question
Replies: 9
Views: 2376

Re: PyBoard Timer Question

I wonder if it would be possible instead of trying to synchronise your pulse train with the ADC, instead run the pulse train independently using it's own timer/channel at whatever frequency and duty cycle makes sense, then run two ADC measurements in parallel (using read_timed_multi) - one measuring...
by jimmo
Mon Jun 03, 2019 1:15 am
Forum: Programs, Libraries and Tools
Topic: how run IRQ() IN IRQ()
Replies: 12
Views: 2148

Re: IRQ() IN IRQ()

Just another note from your code: P5.irq(trigger=Pin.IRQ_RISING , handler=enter_password() ) This should be P5.irq(trigger=Pin.IRQ_RISING , handler=enter_password ) (You're want to set the handler to the function "enter_password". If you include the "()", then you're setting it to whatever enter_pas...
by jimmo
Mon Jun 03, 2019 1:13 am
Forum: Programs, Libraries and Tools
Topic: how run IRQ() IN IRQ()
Replies: 12
Views: 2148

Re: IRQ() IN IRQ()

OK, makes sense. FYI, this is actually quite a difficult problem. The way to think about problems like this is with a thing called a "state machine". The idea is that your program can be in some state, and inputs cause it to move to the next state. An input is something like "a knock", or "some time...