在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):idolpx/mobile-rr开源软件地址(OpenSource Url):https://github.com/idolpx/mobile-rr开源编程语言(OpenSource Language):C++ 61.9%开源软件介绍(OpenSource Introduction):ESP8266 Mobile Rick Roll Captive PortalLive ChatThe purpose of this project was to help me get familiar with programming for the ESP8266 and have a bit of fun.
On bootup, the buzzer plays a little bit of "Never Gonna Give You Up". To access the console, connect to the ESP8266 Access Point and browse to "http://10.10.10.1/console". From here you can monitor all connections and see when someone gets Rick Roll'd by the device. The console also allows you to enter commands to get more info about the status of the device, change the SSID, get the Rick Roll count and even beep the buzzer. The "debug" setting is on by default and shows you all DNS and HTTP requests made to the device. It's kind of cool to see all the sites that the apps on your phone are trying to access. Check out the screenshots of the console for a glimpse of what it looks like. Some apps are very noisy. You can toggle the "debug" off to not see that stuff. Parts List
WiringConnect the '+' lead of the piezo to GPIO 4 (D2 on WeMos D1 Mini) and '-' lead to Ground. I chose GPIO 4 because I installed the long leads with the headers on the WeMos D1 Mini. The spacing from ground was perfect to just plug the buzzer in direct between G & D2. Build FirmwareI use PlatformIO to build this. http://platformio.org/
Upload Firmware and SPIFFS dataAfter your firmware build is successful you can upload it by clicking the arrow under the checkmark in the PlatformIO toolbar.
You can add/edit the files in the "www" folder to your liking. (Files in the "www" folder will be cloned and gzipped to the "data" folder when building.) Then follow the instructions below to build and upload the SPIFFS file system image to your ESP8266.
Note: Anytime you make changes to the firmware or the data you can rebuild and upload either without the need to install the other again. They reside in different areas of the flash memory. ReferencesI learned everything I needed to create this from these projects
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论