Search found 1938 matches

by jimmo
Fri May 24, 2019 6:25 am
Forum: Pyboard D-series
Topic: TILE36 experiences
Replies: 8
Views: 1865

Re: TILE36 experiences

So I digged around in the datasheet and was able to come up with a few code snippset that some of you might find useful. In the end I was able to display scrolling text across 2 tiles in rainbow color with the following code: ... It's just a quick and dirty example but I guess it helps to get you s...
by jimmo
Fri May 24, 2019 6:07 am
Forum: Programs, Libraries and Tools
Topic: How to send file using urequests.
Replies: 6
Views: 2662

Re: How to send file using urequests.

Can you share what you've got so far. But here are some hints... So you're going to need to set up a headers dict to pass to `requests.post` (which sets the content-encoding) and then it's a matter of generating a string to pass as the `data` parameter which is the encoded parameters (chat_id and fi...
by jimmo
Fri May 24, 2019 5:48 am
Forum: Drivers for External Components
Topic: L298N Motor Driver Board Pyboard 6V DC motors
Replies: 11
Views: 2678

Re: L298N Motor Driver Board Pyboard 6V DC motors

Also, can you link to the board you're using with the L298N? There may be some additional connections you have to make.
by jimmo
Fri May 24, 2019 5:42 am
Forum: Drivers for External Components
Topic: L298N Motor Driver Board Pyboard 6V DC motors
Replies: 11
Views: 2678

Re: L298N Motor Driver Board Pyboard 6V DC motors

Hi, The L298N is a dual full-bridge controller. To learn more about this, I'd start with a full-bridge (often called an H-bridge). The basic idea of an H-bridge is that it has two inputs (A and B). To go forward, you turn on A and turn off B, backward turn off A, turn on B. The L298N extends this by...
by jimmo
Fri May 24, 2019 5:15 am
Forum: Other Boards
Topic: [Any STM32 board] How much time this loop should take ?
Replies: 14
Views: 2217

Re: [Any STM32 board] How much time this loop should take ?

Is your code available someplace (i.e github) that I can build for a 401 board with a known HSE crystal and compare results? I'm fairly certain (based on other threads, and the values he's quoted that match) that they're working from: https://github.com/KittenBot/micropython_meowbit/blob/uf2/ports/...
by jimmo
Fri May 24, 2019 5:14 am
Forum: Other Boards
Topic: [Any STM32 board] How much time this loop should take ?
Replies: 14
Views: 2217

Re: [Any STM32 board] How much time this loop should take ?

A scope would be super handy :) Seriously, best addition to my workbench. Think about how many hours you've spend on this already. I got a Rigol 1054Z a few years back (yes I watch a lot of EEVBlog), it's entry-level but I love it. I also have the logic analyser recommended in this video https://www...
by jimmo
Fri May 24, 2019 1:57 am
Forum: Programs, Libraries and Tools
Topic: how find a word in txt file
Replies: 4
Views: 787

Re: how find a word in txt file

Does your board have `ujson` (I'm pretty sure it will) import ujson config = {'essid': 'hello', 'password': 'secret'} ujson.dump(config, open('config.txt', 'w')) >>> ujson.load(open('config.txt', 'r')) {'password': 'secret', 'essid': 'hello'} (Sorry I didn't answer your actual question, but doing th...
by jimmo
Fri May 24, 2019 12:45 am
Forum: Other Boards
Topic: [Any STM32 board] How much time this loop should take ?
Replies: 14
Views: 2217

Re: [Any STM32 board] How much time this loop should take ?

I find the STM32CubeMX tool pretty handy for doing the clock calculations and some of this initial config stuff. Here's a screenshot of your config: Screenshot_2019-05-24_10-41-51.png The error info for the /M node is "PLLM output frequency is currently set to 0.666666 MHz. Must be >0.95 MHz and < 2...
by jimmo
Thu May 23, 2019 10:24 pm
Forum: Development of MicroPython
Topic: [SOLVED] USB connection mistery
Replies: 7
Views: 1357

Re: v1.10 mistery

Btw, when it crashes, are you subsequently able to open up the console and get to the REPL? Or has it fully locked up? Or is it in a state where you can ctrl-c back to the repl? And just to confirm that in both scenarios, it's the same power supply (usb from your laptop), the only difference is whet...
by jimmo
Thu May 23, 2019 10:14 pm
Forum: Development of MicroPython
Topic: [SOLVED] USB connection mistery
Replies: 7
Views: 1357

Re: v1.10 mistery

Maybe easier (and will eliminate any potential issues in your build env) to download the stock 1.9.4 firmware from micropython.org/download and flash it via DFU the ordinary way. Maybe you could compare the nightly build with your own build at master? (Unless you have local mods / frozen modules) Bu...