Search found 507 matches

by mcauser
Mon Sep 20, 2021 12:09 pm
Forum: General Discussion and Questions
Topic: Interfacing mcp9808 temperature sensor
Replies: 1
Views: 2616

Re: Interfacing mcp9808 temperature sensor

Firstly you need to download mcp9808.py and copy to your device. Next connect the sensor to your I2C pins. Then a simple example would be: from machine import Pin, I2C import mcp9808 # adjust pins and frequency to suit your device i2c = I2C(scl=Pin(5), sda=Pin(4), freq=100000) # create an instance o...
by mcauser
Thu Sep 16, 2021 7:37 am
Forum: Drivers for External Components
Topic: NRF905 module
Replies: 6
Views: 50985

Re: NRF905 module

I have a mostly working driver for the NRF905. I'll publish on my github once it gets a bit more polish. If you are after performance, I would agree with @pythoncoder and suggest the NRF24L01. It can TX/RX 40x faster, operates up at 2.4ghz, and there's plenty of sample code in the wild. Be sure to g...
by mcauser
Sat Jul 31, 2021 2:34 am
Forum: Drivers for External Components
Topic: SSD1327 4-bit greyscale OLED displays
Replies: 10
Views: 38619

Re: SSD1327 4-bit greyscale OLED displays

The current implementation uses the framebuf built in petme monospace font, which is has fixed 8x8 characters. https://github.com/micropython/micropython/blob/master/extmod/modframebuf.c#L34 There were a few font scaling PRs open on Github for multiplying the font size, but with scaling up, they wil...
by mcauser
Thu May 27, 2021 11:55 pm
Forum: Drivers for External Components
Topic: 74HC595 shift registers
Replies: 4
Views: 3883

74HC595 shift registers

Made a little MicroPython driver for 74HC595 shift registers, both SPI + bit bang.
More examples coming soon.
https://github.com/mcauser/micropython-74hc595
by mcauser
Thu Apr 29, 2021 11:10 am
Forum: Newsletter archive
Topic: MicroPython Newsletter Issue 11
Replies: 2
Views: 32700

Re: MicroPython Newsletter Issue 11

Congratulations Damien and Happy Birthday MicroPython!
by mcauser
Thu Mar 25, 2021 10:25 pm
Forum: ESP32 boards
Topic: ESP-32 WROOM discrepancy in quickref page
Replies: 6
Views: 2876

Re: ESP-32 WROOM discrepancy in quickref page

Should that https://github.com/micropython/micropython-esp32 repo be marked as archived to avoid confusion, now that it has been merged into mainline?
by mcauser
Sun Feb 28, 2021 11:10 pm
Forum: Drivers for External Components
Topic: Drivers for EEPROM, FRAM and Flash chips
Replies: 15
Views: 71828

Re: Drivers for EEPROM, FRAM and Flash chips

writevto() was recently added for writing a tuple/list of buffers. Same can be achieved by combining the bufs and calling write() once, or calling write() multiple times within a start() - stop(). # new way self._i2c.writevto(self._i2c_addr, (self._addrbuf, buf[start: start + npage])) # old way, com...
by mcauser
Thu Jan 07, 2021 5:11 am
Forum: Drivers for External Components
Topic: TCRT5000-driver
Replies: 3
Views: 3533

Re: TCRT5000-driver

If you are using one of these modules, it has the resistors on board.
The A0 and D0 are analog and digital outputs. You can use one or the other, depending on your needs.
The blue potentiometer is for tweaking the D0 sensitivity - where on the analog scale it triggers.
by mcauser
Thu Jan 07, 2021 4:45 am
Forum: General Discussion and Questions
Topic: ESP8266 4x7 segment display
Replies: 3
Views: 2267

Re: ESP8266 4x7 segment display

The TM1637 driver is just for common anode displays. MAX7219 can be used to drive both common cathode (normal) and common anode (reverse). Here's how you can wire it in either direction . If you just want more IOs, have a look into using an IO expander: MCP23008, MCP23017, PCF8574, PCF8575 Other LED...
by mcauser
Fri Dec 11, 2020 9:14 pm
Forum: Other Boards
Topic: WeAct STM32F411CEU6 black pill
Replies: 79
Views: 161223

Re: WeAct STM32F411CEU6 black pill

You can switch off USB mass storage in boot.py See: http://docs.micropython.org/en/latest/pyboard/tutorial/usb_mouse.html I think littlefs also doesn’t work with USB mass storage, only fat, so you could try reformatting it. Anyone else able to confirm this? ESP ports don’t have USB mass storage supp...