Page 1 of 1

DAN’S WI-FI AND OLED UPGRADE FOR THE MIGHTYOHM GEIGER COUNTER KIT

Posted: Tue Mar 22, 2022 1:34 pm
by Bambam
Hi there,

I built the geiger counter kit and it works fine. I read about the upgrade "DAN'S WI-FI AND OLED UPGRADE FOR THE MIGHTYOHM GEIGER COUNTER KIT" and bought the Adafruit Feather HUZZAH ESP8266 and Adafruit FeatherWing OLED. But when I compile the example program I get an error message (see below).
Could someone help me on this?

Many thanks!

Bambam

In file included from c:\Users\bb\Documents\Arduino\libraries\EspSoftSerial-master/EspSoftSerialRx.h:18:0,
from C:\Users\bb\Desktop\Geiger_WiFi_OLED\Geiger_WiFi_OLED.ino:23:
c:\Users\bb\Documents\Arduino\libraries\EspSoftSerial-master/CircularBuffer.h:10:7: error: redeclared with 2 template parameters
class CircularBuffer
^
In file included from C:\Users\bb\Desktop\Geiger_WiFi_OLED\Geiger_WiFi_OLED.ino:22:0:
c:\Users\bb\Documents\Arduino\libraries\CircularBuffer/CircularBuffer.h:41:119: note: previous declaration 'template<class T, unsigned int S, class IT> class CircularBuffer' used 3 template parameters
template<typename T, size_t S, typename IT = typename Helper::Index<(S <= UINT8_MAX), (S <= UINT16_MAX)>::Type> class CircularBuffer {
^
Multiple libraries were found for "CircularBuffer.h"
Used: C:\Users\bb\Documents\Arduino\libraries\CircularBuffer
Not used: C:\Users\bb\Documents\Arduino\libraries\EspSoftSerial-master
Compilation error: exit status 1

Re: DAN’S WI-FI AND OLED UPGRADE FOR THE MIGHTYOHM GEIGER COUNTER KIT

Posted: Wed Mar 23, 2022 1:35 pm
by mightyohm
Hrm, this looks like a libraries issue - probably the libraries have changed over time and the old code no longer builds. Have you tried reaching out to Dan Watson?

http://syncchannel.blogspot.com/2016/01 ... tyohm.html

Re: DAN’S WI-FI AND OLED UPGRADE FOR THE MIGHTYOHM GEIGER COUNTER KIT

Posted: Wed Mar 30, 2022 5:57 am
by Bambam
Have you tried to reach Dan Watson?
Yes, I tried to contact him, but got no reply...

Does anyone have this setup running and can help?

Thanks!

Re: DAN’S WI-FI AND OLED UPGRADE FOR THE MIGHTYOHM GEIGER COUNTER KIT

Posted: Fri Apr 22, 2022 12:59 am
by gopher
Hi, the problem with this Upgrade is that its some years old. And the Arduino IDE is not the most reliable.
Furtheron the libraries used (especially the EspSoftSerial-master) is not maintained and pretty much outdated.
And the board Drivers for the featherwing (esp8266) have changed multiple times since then. So the project is more or less obsolete,
its not maintained!
You ran in the typical traps with the Arduino IDE (Multiple XXX.h in different Versions of the same name in different libraries). If you want to get this to work, do the following:
1. Delete or remove ALL the Packages/Folders you have installed in the Arduino library folder! (Many contain different Versions of the same library, and the IDE takes the first it will find-mostly not the right or an outdated one). I advice this for every new project!

2. Install the Libraries you need (and only those) fresh from Github for your project
(CircularBuffer is part of the ESPSoftSerial-master for example)
3. Go to the Board manager and chose the Version 2.50 (not bigger) of the esp8622 Board driver library! (the current Version is 3.02).

Then it will compile and work (though I kicked out everything that connects to ArduinoIO, except WiFi Connect.

This shows again: Not maintained software and projects are pretty soon obsolete. Neither the Author of the Upgrade (DAN) nor the author of the library
EspSoftSerial-master (Scott) are responding to issues. I cant blame them. But this project of the OLED update has to be removed, cause it puts a user in too much hassle. Too much has changed in the years, Memory Management, board driver, libraries and so on.
Today ISR (Interrupt service routines) have to be kept in IRam. This is done by the parameter ICACHE_RAM_ATTR . This is NOT taken care of in the ESPSoftSerial-master, esp. in the EspSoftSerialRx.cpp . So it will not work, even if you got the libraries right. Serial Monitor will show that the Featherwing is allways resetted with "ISR not in IRAM" message. If you correct the cpp File manualy, the Watchdog timer kicks in with restarts, whcih I researched is due to the function
WiFi.begin(WLAN_SSID, WLAN_PASS);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
The While statement can never be left, cause WiFi is not yet connected, and will never be in that loop--> WDT restarts everything.
At this pont I stopped, my programming skills arte not good enough to solve this.
A regular user with average knowledge will NEVER get Dans upgrade to work! I had my problems with it, and i am NOT a beginner.

Re: DAN’S WI-FI AND OLED UPGRADE FOR THE MIGHTYOHM GEIGER COUNTER KIT

Posted: Fri May 20, 2022 2:04 pm
by mightyohm
Sorry folks. It would probably be easier to use Dan's project as inspiration to re-create this project from scratch at this point.

Re: DAN’S WI-FI AND OLED UPGRADE FOR THE MIGHTYOHM GEIGER COUNTER KIT

Posted: Mon Jul 11, 2022 11:15 pm
by whyza
I decided a rewrite would also be the best thing after being inspired by Dan's work.

I also upgraded to the 128x64 OLED variant which you will need for this code as it uses a different driver to the 128 x 32 OLED version.
Pretty much my first Arduino project, so the code while functional, it may not be the best.

Support for both the Feather Huzzah ESP8266 and Huzzah ESP32 v2 hardware

Check it out at:

https://github.com/Whyzanet/WhyzaGC