# The WORKBENCH part 3

**URL:** <https://www.thethingsnetwork.org/forum/t/the-workbench-part-3/21125>\
**Category:** Hardware\
**Created:** [January 1, 2019, 3:01pm UTC](https://www.thethingsnetwork.org/forum/t/the-workbench-part-3/21125 "2019-01-01T15:01:16Z")\
**Posts on this page:** 1\
**Showing post:** 779

<div class="post-metadata">

**Author:** ![fLottes-Adlershof](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/flottes-adlershof/32/25844_2.png) [@fLottes-Adlershof](https://www.thethingsnetwork.org/forum/u/fLottes-Adlershof)\
**Post date:** [August 11, 2019, 10:37pm UTC](https://www.thethingsnetwork.org/forum/t/the-workbench-part-3/21125/779 "2019-08-11T22:37:49Z")

</div>

![20190601_104435](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/4/1/413a32b30281ea3ba1d5e1ea4de5cac78b8e7e61.jpeg)

This is my Cargobikometer demo solution for the ADFC Berlin [fLotte](http://flotte-berlin.de) project, which is currently under development. The hub dynamo can be driven by hand or by a DC motor. The signal from the hub dynamo will be converted from a sine wave into a rectangle signal by a schmitt trigger. To avoid an always running hub dynamo during programming, I use a simple ESP32 based signal generator with touch sensors for switching the frequency. For fun I drive a little motor from the hub dynamo voltage with an AC-DC converter.

The program for counting the distance works very well, but now I have to transmit the distance value via LoRaWAN. The program for sending a fixed distance value via TTN http integration works also very well, but if I put both parts together, the pulseIn function returns always zero.  
I already posted the code examples 2 days ago in the [forum](https://www.thethingsnetwork.org/forum/t/solar-powered-low-cost-lora-node-with-integrated-battery-holder/14198/14#).

It would be nice, if somebody can help me to fix the problem. When the problem is fixed, I can move to the next step in my project, finding a suitable battery backed hardware device and a waterproof case, which should be placed on the bottom side of the cargobike.

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/the-workbench-part-3/21125)._
