Search found 1572 matches

by Roberthh
Sat Aug 31, 2019 7:01 am
Forum: MicroPython pyboard
Topic: DAC.triangle - Wrong frequency generated
Replies: 3
Views: 235

Re: DAC.triangle - Wrong frequency generated

Is it always off by a factor of 4? So do you get 60 Hz if you ask for 240? Or does it seem to hit a maximum step frequency?
by Roberthh
Fri Aug 30, 2019 8:09 pm
Forum: General Discussion and Questions
Topic: Getting substring from string
Replies: 4
Views: 175

Re: Getting substring from string

Do you have the while line after "from string:" as a single string item. I'm asking because as python element it is a tuple of two strings. If yes, you can for instance use the expression: s.split('\'')[3].strip() # Three single quotes in the brackets, one of the escaped. assuming s is the variable ...
by Roberthh
Fri Aug 30, 2019 2:03 pm
Forum: Other Boards
Topic: low power consumption pbyL board
Replies: 9
Views: 309

Re: low power consumption pbyL board

Then the current has to be corrected by a factor of 11. When the meter shows 90 nA, the actual current is ~1 µA. (In my previous post I read the meter wrong as ~10nA).
by Roberthh
Fri Aug 30, 2019 6:49 am
Forum: Other Boards
Topic: low power consumption pbyL board
Replies: 9
Views: 309

Re: low power consumption pbyL board

If I understand the properties of your multimeter right, the internal shunt for the µA range is 1000 Ohm (199.99mV/199.99µA). With the external shunt of 10 Ohm this means, that only about 1% of the current goes through the multimeter. So instead of the shown ~10nA, the devices consumes about 1 µA. T...
by Roberthh
Thu Aug 29, 2019 5:22 pm
Forum: ESP32 boards
Topic: ESP32 PyCharm all ok but nothing happens
Replies: 14
Views: 439

Re: ESP32 PyCharm all ok but nothing happens

Maybe you should put aside PyCharm for the moment and go for simple tools. Main.py has to be by default in the top level directory. Open up a serial terminal session using e.g. screen, and once you have the REPL prompt, enter the commands: import uos uos.mv("zeze/main.py", "main.py") uos.mv("zeze/mo...
by Roberthh
Thu Aug 29, 2019 3:49 pm
Forum: Other Boards
Topic: low power consumption pbyL board
Replies: 9
Views: 309

Re: low power consumption pbyL board

Do youi also use the 10 Ohm shunt resistor in the current test for sleep mode?
by Roberthh
Thu Aug 29, 2019 6:01 am
Forum: General Discussion and Questions
Topic: OSError: [Errno 2] ENOENT
Replies: 6
Views: 230

Re: OSError: [Errno 2] ENOENT

Ok. You get the ENOENt error because there is no main.py on the board. You can ignore that error. To run your code, assuming it is in a file called to_hex.py, you have to type at the REPL:

import to_hex

you may also run that from a main.py file, which is executed at every boot.
by Roberthh
Wed Aug 28, 2019 7:36 pm
Forum: ESP32 boards
Topic: ESP32 PyCharm all ok but nothing happens
Replies: 14
Views: 439

Re: ESP32 PyCharm all ok but nothing happens

I cannot tell it from the screen shot, but the file you upload must be called "module.py" (even if that is a confusing name). Then, "import module" should work.
by Roberthh
Wed Aug 28, 2019 4:51 pm
Forum: General Discussion and Questions
Topic: OSError: [Errno 2] ENOENT
Replies: 6
Views: 230

Re: OSError: [Errno 2] ENOENT

ENOENT means file not found. What is the size of ascii.txt? The way you code it has to fit in RAM, and the converted data too.
by Roberthh
Tue Aug 27, 2019 7:16 am
Forum: Programs, Libraries and Tools
Topic: Pillow for Micropython
Replies: 2
Views: 184

Re: Pillow for Micropython

LoPy4 is a product of Pycom Inc (www.pycom.io), and supported by their git repository at https://github.com/pycom/pycom-micropython-sigfox, forum at forum.pycom.io. It is indeed built upon Micropython from this web site, but adds their own hardware support. Being based on the ESP32, you can use the ...