Search found 10 matches

by Almoturg
Sun May 29, 2016 5:41 pm
Forum: ESP8266 boards
Topic: Invalid pin D6-D8
Replies: 2
Views: 3765

Re: Invalid pin D6-D8

These pins are used for the internal flash, they are not available on your board anyway. See here, the pin numbers in micropython are the ESP-8266 ones (e.g. GPIO5) which are not the ones printed on your board.
by Almoturg
Sat May 28, 2016 9:18 pm
Forum: ESP8266 boards
Topic: Mounting sd card
Replies: 5
Views: 6920

Re: Mounting sd card

That would be awesome! It seems that one issue is the sector size: The onboard flash has 4 kiB sectors while the sd card uses 512 byte ones. Unfortunately creating the FATFS filesystem struct always allocates the maximum sector size, so it runs out of memory... Edit: Actually there seems to be enoug...
by Almoturg
Fri May 27, 2016 10:08 am
Forum: ESP8266 boards
Topic: Mounting sd card
Replies: 5
Views: 6920

Re: Mounting sd card

The esp8266 port doesn't have the pyb.mount function which is used in sdtest.py (I think it should be in os now, but its not there either). os.Vfsfat seem to be imported from extmod/vfsfat while the other file system functions (e.g. os.mkdir,...) just call the methods of the first file system object.
by Almoturg
Thu May 26, 2016 10:49 pm
Forum: ESP8266 boards
Topic: Mounting sd card
Replies: 5
Views: 6920

Mounting sd card

I would like to read and write files from an sd card. Currently I'm using a microsd connector ripped from an old device (connected to a custom esp-12 breakout board) but the goal is to mount a connector on a new custom pcb eventually. I have gotten sdcard.py from micropython/drivers/sdcard to work b...
by Almoturg
Mon May 23, 2016 11:30 pm
Forum: ESP8266 boards
Topic: Saving power
Replies: 21
Views: 26409

Re: Saving power

Unfortunately running any kind of main loop prevents the sleep modes from starting. I first tried using machine.Timer to call my loop function periodically but that doesn't work because you can't do very much in interrupt handlers. So I thought that as the loop function should be the only thing that...
by Almoturg
Sun May 22, 2016 6:06 pm
Forum: ESP8266 boards
Topic: Saving power
Replies: 21
Views: 26409

Re: Saving power

I just set MICROPY_REPL_EVENT_DRIVEN to 1 and my force_modem_sleep function works now! :D The current drops to 15mA including regulator losses (the USB powerbank I was using actually switches off now because it thinks nothing is connected). Is there some reason why MICROPY_REPL_EVENT_DRIVEN 1 is not...
by Almoturg
Sun May 22, 2016 4:25 pm
Forum: ESP8266 boards
Topic: Saving power
Replies: 21
Views: 26409

Re: Saving power

The force sleep API is described in the API guide in chapter 3.7. There is also a general guide about low power modes . I have tried to add a simple function esp.force_modem_sleep STATIC mp_obj_t esp_force_modem_sleep() { wifi_station_disconnect(); wifi_set_opmode(NULL_MODE); //set wifi mode to null...
by Almoturg
Sun May 22, 2016 12:43 am
Forum: ESP8266 boards
Topic: Saving power
Replies: 21
Views: 26409

Re: Saving power

There seems to be a separate function to actually force the sleep mode to begin, see here: https://github.com/esp8266/Arduino/issues/460 There is more info here: http://bbs.espressif.com/viewtopic.php?t=1134 Someone from Espressif posted this sample there //sleep over. void fpm_wakup_cb_func1(void) ...
by Almoturg
Tue May 17, 2016 10:20 pm
Forum: ESP8266 boards
Topic: Saving power
Replies: 21
Views: 26409

Saving power

I've been trying to reduce the power consumption of my esp-12 with micropython. Currently it uses 80-85mA (through a linear regulator with 20µA quiescent current from ~3.6V) no matter what I do. I have tried using esp.sleep_type() to set either esp.SLEEP_MODEM or esp.SLEEP_LIGHT but the power consum...
by Almoturg
Sat May 07, 2016 6:11 pm
Forum: ESP8266 boards
Topic: Using the tx/rx pins not for UART
Replies: 42
Views: 48466

Re: Using the tx/rx pins not for UART

I am also interested in disabling the REPL over UART. I would like to use a serial controlled e-Paper display.