Search found 55 matches

by scruss
Tue Apr 13, 2021 2:44 pm
Forum: ESP8266 boards
Topic: ESP8266 Bootloop after some seconds
Replies: 6
Views: 79

Re: ESP8266 Bootloop after some seconds

can you tell us, please: what board you have: there are lots of NodeMCU variants, all slightly different. how much flash is on board. There's a script in the Arduino ESP8266 package which will work that out for you and display it in the terminal. what esptool.py command line you used, exactly: pleas...
by scruss
Sun Apr 11, 2021 2:42 am
Forum: ESP8266 boards
Topic: ValueError: syntax error in JSON
Replies: 2
Views: 167

Re: ValueError: syntax error in JSON

When I try that on MicroPython on Linux, config.json ends up containing:

Code: Select all

<settings object at 7faf2a7c5200>
Can you save classes in ujson objects?
by scruss
Sat Apr 10, 2021 6:19 pm
Forum: micro:bit boards
Topic: Program that reads max. min. analog is raining. Micropython micro: bit How to optimize this code?
Replies: 7
Views: 206

Re: Program that reads max. min. analog is raining. Micropython micro: bit How to optimize this code?

What do you mean they are noisy? potentiometer_noise.png That graph is a series of readings from a potentiometer sitting at its centre position, scaled to the same 0 … 1023 range that you are using. It's reading between 509 and 517, but the device isn't moving at all. It's just something analogue d...
by scruss
Fri Apr 09, 2021 1:20 pm
Forum: micro:bit boards
Topic: Program that reads max. min. analog is raining. Micropython micro: bit How to optimize this code?
Replies: 7
Views: 206

Re: Program that reads max. min. analog is raining. Micropython micro: bit How to optimize this code?

So, an analogue (potentiometer) joystick with the y-axis on pin0 and the x-axis on pin1? If I understand the micro:bit's MicroBitPin class right, you're going to get a full range of 0 – 1023 from a read_analog() call. Will you be using this one joystick, or are you writing code that could be used wi...
by scruss
Wed Apr 07, 2021 6:26 pm
Forum: Pyboard D-series
Topic: ntptime not included with PyBoard firmware
Replies: 11
Views: 369

Re: ntptime not included with PyBoard firmware

I think the off-by-one in the day of the week field might be something to do with traditional RTCs being developed before Posix standards became universal in computers. Almost every RTC I've used has been modelled after the MC146818 from 1984: all BCD fields and two-digit years.
by scruss
Tue Apr 06, 2021 4:06 pm
Forum: Pyboard D-series
Topic: ntptime not included with PyBoard firmware
Replies: 11
Views: 369

Re: ntptime not included with PyBoard firmware

but it's always going to be a bit of a hack, since full Unix tz support requires more memory than we'll ever have available. Non-wifi MicroPython boards can get their RTC set from rshell and the host computer's time. The RTC might drift a bit, but it's usually good enough for data logging work. NTP ...
by scruss
Mon Apr 05, 2021 3:45 am
Forum: Other Boards
Topic: Wio Terminal with ATSAMD51 + Realtek RTL8720DN + 2.4 screen + etc
Replies: 14
Views: 3320

Re: Wio Terminal with ATSAMD51 + Realtek RTL8720DN + 2.4 screen + etc

Thanks! Note that binutils-arm-none-eabif should be binutils-arm-none-eabi . I've got a Trinket lurking about somewhere, as well as a Xiao. Update : … success! ish … MicroPython v1.14-132-gd87f42b0e on 2021-04-04; Trinket M0 with SAMD21E18A >>> import machine >>> machine. __name__ bootloader freq me...
by scruss
Sat Apr 03, 2021 1:45 am
Forum: General Discussion and Questions
Topic: I am at a loss of how to get started??
Replies: 14
Views: 442

Re: I am at a loss of how to get started??

robert@mountain-cabin:~$ rshell -p /dev/ttyACM0 -f blinkpico.py That's attempting to execute MicroPython code on your local computer as rshell commands. Not really gonna work so well. One more question, How do I actually just upload the file straight into memory and execute? If you want something t...
by scruss
Fri Apr 02, 2021 9:52 pm
Forum: General Discussion and Questions
Topic: I am at a loss of how to get started??
Replies: 14
Views: 442

Re: I am at a loss of how to get started??

Running Linux. I have tried looking in the docs but I don't see any simple how to guide, perhaps I am missing something, perhaps I am thinking wrong headed about all of this?? I obviously have zero experience with programming or micro-controllers. Have you seen Get Started with MicroPython on Raspb...
by scruss
Fri Apr 02, 2021 9:42 pm
Forum: General Discussion and Questions
Topic: Is there a way to encrypt MicroPython codes?
Replies: 3
Views: 192

Re: Is there a way to encrypt MicroPython codes?

That's one way to do encryption - but I'm guessing the pyboard removes the whole need for using the company in China. There's also the very likely possibility that the partner company is far more interested in working with their next customer than keeping your data about and copying it for a possibl...