How to make a step and voltage counter using Arduino Uno (wiring and code)

We have a project wherein we converts mechanical energy into sustainable energy/ electricity. We used piezoelectric as the electricity harvester.

Do anyone here has a code for step counter and voltage counter? We are using Arduino Uno and a LCD for it.

Also a wiring tutorial how to make it.

We're basing our project from "Piezoelectric Energy Harvesting For Mobile Charging" by K. Priyanka, 2023

Welcome to the Arduino forum. Very interesting first project.
Did you happen to notice the Uno has a limit of 5 volts DC for measuring voltages, while your piezoelectricity will be several hundred volts and AC voltage?

That sounds like an interesting project that could be a lot of fun, what course is this for? However, please keep in mind that we are not a free design or code-writing service. We’re more than happy to help with your design or code, but we need you to make an initial attempt. Please design and write your code, then post it along with your annotated schematic and a explanation of what’s not working properly.

  1. Show Your Work First: Before asking for assistance, make an attempt to design or write the code yourself. Share your work along with details about what isn’t working.
  2. Provide Clear Documentation: Since we can’t see your project, share an annotated schematic (best) or a clear drawing of your setup. Pictures are welcome, but avoid using Fritzing diagrams as they are wiring diagrams, not schematics, and are not ideal for troubleshooting.
  3. Include Technical Details: If there is specific hardware involved, include links to technical information. There are often many versions of similar components, so precise details are essential.
  4. Reference Resources: For additional help, check out useful links and tutorials: Useful Links on Arduino Forum.
1 Like

Yes, does it mean that they are not compatible?

Do you need to ask?

I've seen someone did it.

I'd suspect the installation costs would be prohibitive for the amount of energy generated.

How does piezoelectricity work?

As with any other form of electrical current, the energy generated through piezoelectricity can be used, but its quantity is somewhat limited; it is around 20 watts (in comparison, a mobile phone charges at 15 watts).
You will need to provide at least a sketch of your planned system, and an outline of what exactly you want to measure.

That paper is very confusing.
First they mention using a MEGA2560, then PIC16F677, then PIC8F4520 and in the end they mention Uno but in the pictures it look like some special custom board.

It is indeed confusing. :weary:

Thank you for all the responses, we've already found the solution to our problem.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.