The story of the development of one device in four episodes. Episode 4. We connect the GGreg20 registrar to the ESP12.OLED Controller

  • Post category:Tips

In Episode 3, we talked about GGreg20 recorder of radioactive particles with access to the controller

What do you need a controller for?

Admittedly, developers of electronic equipment (and we are no exception) are trying to find a solution without the use of a controller, because they are afraid of programming.
In order not to “connect” with programming, we tried to find a ready-made module on the Internet with a screen and a pulse counter.

Dear gentlemen! We do not recommend wasting time. Even if you find a module that counts pulses and displays their number, it will not be X-rays or Sieverts, but simply the number of pulses or frequency. And the price of such a module is like the whole dosimeter.

So what do you need a controller for?

Fig. 1. Image GGreg20 and ESP12.OLED (design).
  • count the number of pulses over a period of time;
  • calculate a number of parameters related to the level of radiation and human protection: the current level, the accumulated level; detection and signaling of exceeding the set thresholds, recording the time and place of measurements, construction of diagrams and much more that can be useful or vital. In addition, each type of Geiger-Mueller tube has its own original characteristics, which are calculated;
  • display the results of measurements and calculations on the display;
  • remember measurement statistics;
  • use the means of radio communication with a computer (Wi-Fi);
  • measure and display the battery charge level.

On the controller, each developer can develop their own script for programming and data visualization. On the other hand, the controller is the same miniature, simple and cheap ready-made module that we tried to find. If you think you weren’t born a programmer, that’s not true. The controller gives you the opportunity to start with the simplest, and after a while to write the coolest program in the world. Moreover, over time you have the opportunity to rewrite and update programs to make them even better.

D GGreg20 detector can be connected to any controller. It can be NodeMCU or Arduino, which can be purchased in online stores. If you use a NodeMCU, you will have to somehow connect and secure the display. Using the Arduino, there will be two problems: lack of display and Wi-Fi. Using our GGreg20 + kit ESP12.OLED , connect the two boards as shown in Fig. 2, turn on the power and program. Everything is provided on our boards.

We suggest using our ESP12.Oled controller module to create a full-fledged convenient dosimeter, and more.

Dosimeter = GGreg20 + ESP12.OLED
Dosimeter = GGreg20 + ESP12.OLED

ESP12.Oled controller , developed on the basis of the ESP8266-12E (F) module manufactured by Espressif and a graphic display, which in the form of a module is also placed on the controller board. What makes our controller special? We have developed a kind of transformer. You can use the controller as:

  • Programmer MCU 8266-12E (F), on which without soldering you can install the MCU for programming and then remove and transfer to the user controller.
Figure 3. Picture of the controller board with the removed MCU ESP8266-12E (F)
  • Boards for designing your own custom controller at home using available tools. In Fig. 4. and in Table 1. we have displayed the maximum amount of information required to create your own controller based on the ESP12.OLED board in the minimum configuration.
Fig. 4. The minimum complete set of the ESP12_OLED board
  • Custom controller with permanently soldered MCU, which can be programmed and used in devices without a display and for visualization to limit the capabilities of the RGB LED;
  • After all, it can be a complete controller with a display, LED, stabilizer, serial interfaces, GPIO, power connector from the microUSB charger or an alternative interface for battery power and much more.
    The power mode configurator provides modes master or glory . This means that the controller can act as a master with the provided switches and connectors and it is possible to power the subordinate modules with a voltage of 3.3 Volts or 5 Volts (if in Arduino projects). The controller can also act as a voltage supply of 3.3 volts or 5 volts relative to other modules.
  • To program the controller, connect ESP12.OLED through the UART connector to your computer, using the UART-USB interface converter on the CP2102 chip or similar, which is widely and cheaply offered by the electronics market: CP2102 module .
  • Important note : If you went by creating your own controller based on the minimum set ESP12.OLED, have already decided on additional components and made the firmware necessary for your project modules – solder the PINs of all components you install to the board. So it will be more reliable.
  • Table 1.
Mark on the board ESP12.OLED.PIN #Name in ESP8266-12Appointment in ESP12.OLEDIN / OUTPhysical “lift” on the board ESP12.OLEDActive level
X21RSTRST button (Sw2)InPull-upLow. On this pin it is possible to connect in parallel one more Reset button for removal on the case panel.
2ADCADC input – measurement of power supply voltageAnalog InDividerA divider is installed to measure the battery voltage level or from USB
3ENPull-up
4GPIO16Deep-Sleep-Wake-upOutPull-upLow
5GPIO14VD1 Led BlueOutPull-upLow
6GPIO12VD1 Led GreenOutPull-upLow
7GPIO13VD1 Led RedOutPull-upLow
8VCCPower supply 3V3
X11GPIO11As needed
2GPIO7As needed
3GPIO9As needed
4GPIO10As needed
5GPIO8As needed
6GPIO6As needed
X31GNDGNDPort for connecting the USB converter Common GND bus
2GPIO15HSPI CSOutPull-DownLow
3GPIO2Pulse inputinPull-upLow
4GPIO0Flash button (Sw1)InPull-upLow. This pin can connect a parallel button

5GPIO4I2C SDAIn / outPull-upPort for connecting components with I2C: SDA bus

6GPIO5I2C SCLIn / outPull-upPort for connecting components with I2C bus: SCL
7RXUART data inputInPort for connecting the USB converter: RX
8TXUART Data outputOutPort for connecting the USB converter: TX
X51Power modeSwitch
2Power modeSwitch
X61Power input from battery or other component 4.5 – 6 Volts, or output 5 Volts to another component when powered by USB.Warning!If the X5 switch is installed, then the power supply from X6 (1) or USB .. If the power is 3V3, coming through X6 (2) or X2 (8), then remove the X5 switch.
23V3Input / Output 3V3In / out
3Data (GPIO2)Pulse data inputInThe source of the pulses is a Geiger meter or a meter of water, electricity, etc.
4GNDGND
J11GPIO16On / Off Wake-up after Deep-Sleep
OLED SDA1GPIO4I2C DataIn / OutPull-upLow
OLED SCL2GPIO5I2C ClockIn / OutPull-upLow
OLED VCC3VCC3V3In / Out
OLED GND4GNDGNDCOM
  • Dimensions ESP12.OLED: 65x30x10 mm.

Detailed instructions on how to connect and use the controller modules can be found in the product descriptions: GGreg20 ,, ESP12.OLED