Arduino pro mini timing seems to be off

Hello,

I recently inherited an arduino set up from someone else in the lab and trying to debug it but seems to be coming across a strange problem. I'm trying to use an Arduino Pro mini (5V 16MHz) to control 2 piezos. However, if I use a direct output from one of the Arduino Pro mini pins into the piezo controller, the piezo turns on for 2x of the time that I want it to turn on.

Other person in my lab circumvented this problem by wiring the arduino pro mini to an arduino uno (output from pro mini goes into pin 7 on the uno) and then this subsequently controls the piezo controller. The output of the uno board into the piezo controller is from A0 and GND pins. My second question is how the Pro Mini to Uno board to the piezo controller can work? I'm simply trying to output a HIGH and LOW voltage into the piezo controller.

Thanks!
Chris

Your post was MOVED to its current location as it is more suitable.

Could you also take a few moments to Learn How To Use The Forum.

Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.

Please read How to get the best out of this forum and post your code using code tags

Hi @sevenseeds5 .
what a crazy solution.

RV mineirin

Can you measure frequency in your lab?

if I use a direct output from one of the Arduino Pro mini pins into the piezo controller, the piezo turns on for 2x of the time that I want it to turn on

What you want, and what the program does, are not necessarily the same. Post the code for the first Arduino, using code tags, and tell us a bit about the piezo controller (e.g. a link to the user manual).

Hi,
Welcome to the forum.

Can you please post your code?
Can you please post a circuit diagram?
Can you please post a picture(s) of your project?
Can you please post link to data/spec of the two piezo units?

Thanks.. Tom.. :smiley: :+1: :coffee: :australia: