Search found 40 matches

by starter111
Wed Aug 07, 2019 10:26 pm
Forum: MicroPython pyboard
Topic: more detail tutorial for external C modules?
Replies: 6
Views: 4717

more detail tutorial for external C modules?

I'm trying to write a software bit banging c modules for an non standard protocol, which is similar to I2C. I follow this tutorial, looks like working but I still have a lot of questions. I'm not good in C, detail tutorial will be very help! https://docs.micropython.org/en/latest/develop/cmodules.ht...
by starter111
Wed Aug 07, 2019 8:53 pm
Forum: MicroPython pyboard
Topic: Extended Length Socket Pins
Replies: 2
Views: 2012

Re: Extended Length Socket Pins

I just did, isn't standard 0.100" (2.54mm) header??
I was using those.
https://www.digikey.com/product-detail/ ... ND/1094289
https://www.digikey.com/product-detail/ ... ND/1002538
by starter111
Thu Jul 18, 2019 8:33 pm
Forum: MicroPython pyboard
Topic: ADC measure negative voltage??
Replies: 23
Views: 15999

Re: ADC measure negative voltage??

I have more question...

Is it any free to use R/W register that I can save calibration value for each board, that won't get erase even Factory reset?
by starter111
Thu Jul 04, 2019 12:18 am
Forum: MicroPython pyboard
Topic: ADC measure negative voltage??
Replies: 23
Views: 15999

Re: ADC measure negative voltage??

I think some hardware issues on my side, I have multiple IO, ADCs, connect to other device. The issue is when I power cycle other device once a while cause pyboard ADC not working anymore. But if I power down by steps, 3.3, 2.5, 2, 1.5..0 and the issue fixed.
by starter111
Wed Jul 03, 2019 8:19 pm
Forum: MicroPython pyboard
Topic: ADC measure negative voltage??
Replies: 23
Views: 15999

Re: ADC measure negative voltage??

more questions....

adc = ADC(Pin('X19'))
adc.read() # read value, 0-4095

How to turn off adc ?? I try dir(adc) it give me this.. "['__class__', 'read', 'read_timed', 'read_timed_multi']", looks like no way to do so?
https://test-ergun.readthedocs.io/en/la ... b.ADC.html
by starter111
Wed Jul 03, 2019 6:45 am
Forum: MicroPython pyboard
Topic: ADC measure negative voltage??
Replies: 23
Views: 15999

Re: ADC measure negative voltage??

got it! Thank you so much!!!
by starter111
Wed Jul 03, 2019 6:41 am
Forum: MicroPython pyboard
Topic: ADC measure negative voltage??
Replies: 23
Views: 15999

Re: ADC measure negative voltage??

timer.deinit() looks good.. I will try tomorrow..
Yes! I want high impedance! or isolate, set pin.in() with pin pull up to None??
by starter111
Wed Jul 03, 2019 6:06 am
Forum: MicroPython pyboard
Topic: ADC measure negative voltage??
Replies: 23
Views: 15999

Re: ADC measure negative voltage??

Thank you so much for your reply! I have two more questions. 1. how do I isolate/turn off pins after use them? Let say I do p0 = Pin(0, Pin.OUT) p0.value(0) how do I turn p0 off? is it Pin.off() ? What is the meaning off "Set pin to “0” output level." Is it mean isolate from outside?? https://docs.m...
by starter111
Thu Jun 27, 2019 12:19 am
Forum: MicroPython pyboard
Topic: ADC measure negative voltage??
Replies: 23
Views: 15999

Re: ADC measure negative voltage??

Thanks~ Roberthh
by starter111
Wed Jun 26, 2019 6:06 pm
Forum: MicroPython pyboard
Topic: ADC measure negative voltage??
Replies: 23
Views: 15999

Re: ADC measure negative voltage??

thanks for advice, is good idea to add diodes.
currently works well, is very accurate, just wondering is it any bandgap reference pin on pyboard?