Bypic Bv508 Loading Settings from Sd Card

As mentioned in my previous post i have been trying out the bv508 mcu with esp8266. Check out it Here
Im currently working on a web based monitoring system for a friend and came to a problem with the ability of regularly changing the WiFi settings.

As the system would be permanently installed and just have a few buttons and no lcd and connection a serial terminal seem too difficult for my non technical friend. I decided to simply house a configuration txt file on a SD card and the system would read and load the settings on startup.

Again i was able to do this in only a few lines of code and thought it was worth sharing.


How it works ?

User simply modifies config file on Sd card and inserts and resets power.
On power up my script will first flash the led three times (card & Indicating config file) and will then attempt loading the wifi settings .
If connection is successful the led will light. At this point the sd card can be removed. If power was reset with no card (no led three flashes) it simply would not try to load the new wifi settings would just connected network stored in Esp8266 flash. You will still get green led on to indicate wifi connected.


Connect the sd holder to ic2 bus.wpid-20150920_171010.jpg

SD Card Connection instructions here

Connect Green led to C3

Install bv508 Firmware

1)Install bv508 firmware with SD card support.
2)Now re-Install esp8266 /dt11 rookie.

Config file:

On root of SD card called “CONF.TXT”
with the content as below






Leave a Reply

Your email address will not be published.


This site uses Akismet to reduce spam. Learn how your comment data is processed.