Skip to content
WiFi Rocnet for esp 32 and 8266
Branch: master
Clone or download
Latest commit b75949b Mar 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data Added the /Data/sound files Feb 16, 2019
Chuff.cpp
Chuff.h Initial V1 upload Feb 14, 2019
Directives.h
EEPROMDEFAULTS.h
Globals.h Initial V1 upload Feb 14, 2019
MQTT.cpp
MQTT.h
NVSettingInterface.cpp
NVSettingInterface.h
Notes.h
OLED.cpp
OLED.h
Ports.h
README.md
RFID_Subs.h
RocSUBS.h
SV.cpp Initial V1 upload Feb 14, 2019
SV.h
Secrets.h
Subroutines.cpp
Subroutines.h Initial V1 upload Feb 14, 2019
WiRocS-12.ino.nodemcu.bin
WiRocS-8.ino.lolin32.bin
WiRocS-8.ino.nodemcu.bin
WiRocS-V12.ino Rename WiRocS.ino to WiRocS-V12.ino Mar 15, 2019
WiRocS-v13.ino
WiRocS-v13.ino.nodemcu.bin
WiRocS-v15.ino
WiRocS-v15.ino.nodemcu.bin

README.md

WiRocS

From V12 I am not going to keep changing the Ino to WiRocs.ino, but keep it as WiRocS-vxx.ino, as this is how I keep it on my home system. You will need to rename the most recent .ino to "WiRocS.ino" after you have downloaded the sketch. (sorry, but this simplifies checking that I have uploaded the latest code.) I am trying to save binaries compiled for the NodeMCU (ESP8266). These should be uploadable via an ESP Flash Programmer and set up a stationary nodes without having to compile the whole code in Arduino. You will need to use FileZilla or Arduino_Sketch_Data_Uploader to upload the sounds from the Data directory to the Node's SPIFFS, but generally this only needs doing once (unless you want to make changes to the sound effects!)

WiFi Rocnet node for ESP 32 and 8266 For documentation please read https://wiki.rocrail.net/doku.php?id=users:dagnall53:description Use of this software is at your own risk!

V15 Internally the Code now references each of the four possible OLEDS as OLED1-4. This saves some confusion with the RocDisplay "display" numbers. I2C bus: the defaults are now:
ESP32: OLED_SDA = 4; OLED_SCL = 5; OLED_SDA2 = 19; OLED_SCL2 = 21; ESP8266 OLED_SDA2 = 5;("D1")OLED_SCL2 = 4("D2); OLED_SDA = 0; ("D3") OLED_SCL = 2; ("D4")

If one or more OLEDs are found during startup, they should display messages during startup and a clock once running.

Sound comes from ESP8266/nodemcu Pin D9 (rx) (or ESP32 pin 22) Connect this to base of an NPN via 10k, and collector to speaker, other side of speaker to 5V. Then try switching an output set to Interface MQTT, Bus (the RocNet address of the node), Address 101-109 you should get sound effects. Make sure you have uploaded the "data" to the spiffs. And programmed using Spiffs(4M(3MSpiffs).

V4b Changed Signal Led (NodeMcu D4) so it only works if Display is NOT connected.

V4 tried to correct error whereby a clean ESP's EEPROM was not properly set, so was being continually set to defaults.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.