Search found 2015 matches

by jimmo
Sat Jun 15, 2019 1:20 pm
Forum: Other Boards
Topic: [Black STM32F407VET6] Pin map
Replies: 10
Views: 2125

Re: [Black STM32F407VET6] Pin map

I found a blurry photo of that board, looks like they're labelled with their "CPU" names (like you say -- P<port><num>).

The easiest way to use them is machine.Pin.cpu.<port><num> (or machine.Pin('<port><num>')
by jimmo
Sat Jun 15, 2019 1:16 pm
Forum: Other Boards
Topic: [pyboard clone] SSD1306 - TypeError: object with buffer protocol required
Replies: 2
Views: 933

Re: [pyboard clone] SSD1306 - TypeError: object with buffer protocol required

>>> sys.version '3.4.0' This is the Python version, could you please also let us know the MicroPython version? sys.implementation same here. did you fix this problem? Could you check the same please? If you're using the latest version of ssd1306.py, you'll need to be running MicroPython v1.11. http...
by jimmo
Sat Jun 15, 2019 11:35 am
Forum: General Discussion and Questions
Topic: NRF24L01+ - stm32duino (blue pill) sender to micropython (ESP32) receiver not working
Replies: 5
Views: 1071

Re: NRF24L01+ - stm32duino (blue pill) sender to micropython (ESP32) receiver not working

One observation from looking at the Arduino library you're using -- not all NRF24L01 support 250kbps, so although both your Python code and Arduino sketch both explictly set it to 250kbps, in Python setting the data rate will do nothing, leaving it on the default 2Mbps. Whereas the Arduino library a...
by jimmo
Sat Jun 15, 2019 11:21 am
Forum: Programs, Libraries and Tools
Topic: Call method and passed as a parameter
Replies: 18
Views: 2728

Re: Call method and passed as a parameter

Hi, Can you post a more complete example of the code (ideally the whole file). I'm unsure where you're putting this line i2c = I2C(-1, scl=Pin(self.clock), sda=Pin(self.sda), freq=400000) The general convention for drivers is to have the constructor take an instance of I2C (or SPI, etc), rather than...
by jimmo
Sat Jun 15, 2019 7:39 am
Forum: ESP8266 boards
Topic: How to switch on a electric bulb with ESP8266 board?
Replies: 50
Views: 8519

Re: How to switch on a electric bulb with ESP8266 board?

This is quite common, the LED is connected between Vcc and the pin. (Some microcontrollers are capable of doing this at a higher current than the other way around).
by jimmo
Fri Jun 14, 2019 1:55 pm
Forum: General Discussion and Questions
Topic: NRF24L01+ - stm32duino (blue pill) sender to micropython (ESP32) receiver not working
Replies: 5
Views: 1071

Re: NRF24L01+ - stm32duino (blue pill) sender to micropython (ESP32) receiver not working

Are the send failures at the radio level or the SPI level? I notice that arduino library has very little in the way to verify that any of the SPI operations succeed?

I can highly recommend Sigrok and the DSLogic Plus reviewed here https://www.youtube.com/watch?v=xZ5wKYnCNcs :)
by jimmo
Fri Jun 14, 2019 1:43 pm
Forum: Programs, Libraries and Tools
Topic: [SOLVED] uansycio.websocket.server/example_websock.py
Replies: 10
Views: 27970

Re: uansycio.websocket.server/example_websock.py

It's built-in, but it's actually called uwebsocket. Some of the "ufoo" modules are aliased (via a weak link) to the "foo" but this doesn't appear to be the case for websocket. Sorry I don't know if there's something I'm missing - but maybe try changing the "import websocket" to "import uwebsocket" a...
by jimmo
Fri Jun 14, 2019 10:54 am
Forum: General Discussion and Questions
Topic: NRF24L01+ - stm32duino (blue pill) sender to micropython (ESP32) receiver not working
Replies: 5
Views: 1071

Re: NRF24L01+ - stm32duino (blue pill) sender to micropython (ESP32) receiver not working

So just to make sure I understand -- you had: ESP32 A (uPy) <--SPI--> NRF24 <--radio--> NRF24 <--SPI--> ESP32 B (uPy) (Which worked fine other than power usage -- does any of the sleep modes help you here?) Now you have: Blue Pill (Arduino) <--SPI--> NRF24 <--radio--> NRF24 <--SPI--> ESP32 B (uPy) B...
by jimmo
Fri Jun 14, 2019 10:44 am
Forum: Programs, Libraries and Tools
Topic: Web interface framework for embedded Linux devices
Replies: 2
Views: 650

Re: Web interface framework for embedded Linux devices

Are you running Linux on this device? There's no "bare-metal" MIPS port that I'm aware of, but you could in theory run the Unix port on Linux on MIPS. Most of the boards that MicroPython runs on a very small microcontrollers (i.e. your RT5350 has more cpu cache than these things have RAM). As far as...
by jimmo
Fri Jun 14, 2019 10:36 am
Forum: Programs, Libraries and Tools
Topic: text parser library
Replies: 2
Views: 646

Re: text parser library

You might find you can use an existing pure-Python library and run it directly. Have you tried running PLY directly in MicroPython? You might need to change a couple of things or provide some missing functions, but for the most part it's "just Python". Lark might be another good option. One of the m...