The flower sensor firmware allows you to create a soil moisture sensor with configurable, rich functionality like additional temperature or humidity sensors, a custom reporting interval. The firmware uses a capacitive measurement based on the following free open-source schematics.




The firmware based on the regular PTVO firmware except for the following:

  • The firmware contains a limited set of sensors that are applicable for battery-powered soil moisture sensors.
  • It cannot work as a router.

Unique features

  • It supports various chips (CC2530, CC2652, CC2651).
  • You can disable unused functions.
  • You can create your own schematics.

How it works

While measuring soil moisture, the firmware generates a high-frequency signal of 2 MHz via the “Clock” pin. The schematic transforms it to an analog value that represents a relative soil moisture.

Firmware configuration

  1. Start FirmwareConfigFlower.exe in the program folder.
  2. Select the “PSM” device type.
  3. Add a soil moisture sensor at least.
  4. Add other sensors.
  5. Configure default reporting interval on the “Expert” tab. The firmware will poll all sensors before sending a periodic report. The chips sleeps between periodic reports and consumes minimal energy.
  6. The optional “External wake-up” button on “Input 1” allows you to reset the device (10 seconds long click) or send a periodic report (short click).
Flower sensor firmware configuration
Flower sensor firmware configuration

Power saving (energy consumption)

Energy consumption for CC2652P2 @ RF signal level -5 dBm
Energy consumption for Rf-star CC2652P2 @ RF signal level -5 dBm (for the first schematic)

1-hour statistics

Test duration: 3600 seconds
Number of reports: 1
Current (max, transmitting): 18050 uA
Current (avg, sleep): 1.96 uA
Estimated battery life:
Battery life (1 x CR2032 @ 240 mAHr): ~485 days
Battery life (2 x AAA @ 1200 mAHr): ~2400 days
Note: it is the theoretical calculation. It is important to check a current leakage in your device before using it with a battery and protect electronic components on your device from impact on the environment (high relative humidity, oxidation of contacts, etc.). I recommend using urethane aerosol spray for it.

There are no comments.

Leave a Reply