Search found 4 matches

by 452
Sun Jun 19, 2016 10:37 am
Forum: ESP8266 boards
Topic: micropython frequency measuring
Replies: 22
Views: 21754

Re: micropython frequency measuring

thanks for response =) I trying to generate pulses on some pin with led and I connect to this pin another one where I check pulse time def genHz(self, pin, period): pin_out = Pin(pin, machine.Pin.OUT, machine.Pin.PULL_UP) self.generator_timer.init(period = period, mode = Timer.PERIODIC, callback = l...
by 452
Sat Jun 18, 2016 4:23 pm
Forum: ESP8266 boards
Topic: micropython frequency measuring
Replies: 22
Views: 21754

Re: micropython frequency measuring

and how to get a time period between pulses on some input pin? be wonderful to get code example on micropython
I think this is basics things and why it's not documented, or have no code examples...
by 452
Sat Jun 18, 2016 3:21 pm
Forum: ESP8266 boards
Topic: micropython frequency measuring
Replies: 22
Views: 21754

Re: micropython frequency measuring

I create simple class store this class in /git/micro.../esp.../scripts/freq.py >>> import freq >>> f = freq.Freq() >>> f.freq_start() >>> # make interupt on pin D5 >>> MemoryError: MemoryError: MemoryError: MemoryError: MemoryError: what is wrong? import machine import time import os import sys from...
by 452
Fri Jun 17, 2016 9:26 pm
Forum: ESP8266 boards
Topic: micropython frequency measuring
Replies: 22
Views: 21754

micropython frequency measuring

please provide examples who have someone, how to measuring a frequency in micropython on ESP8266 board
how many Hz or MHz on pin5 for example