Author Topic: arduino tap tempo for pt2399 ?  (Read 466 times)

carlozsulca

arduino tap tempo for pt2399 ?
« on: November 29, 2020, 08:24:32 AM »
Hello, I recently made a thread asking for recommendations on delays with the pt2399, I was putting together one that I liked but I wanted to add a tap tempo, well I investigated and they always use specialized chips, I live from Peru, here it is very difficult to get those chips so idee in a tap tempo made with an arduino nano and a DAC, the idea is for the arduino to control the tap tempo and send a signal to the dac and it makes a voltage change and goes to a led that controls an ldr, it's something Simple in my opinion, if anyone has any idea which transistor could go, it would be better I think, I also put a switch to vary between the tap tempo and the speed potentiometer.
the bad part is that I am not an arduino programming scholar, I hope someone from here can support that, I suppose it would be to edit a tap tempo code that already exists and add the voltage control of the DAC, here is the idea and schematic, anyway I will try to make the code, maybe it will take me a few months, I will publish it if I get it
-The position of the switch is wrong but I did not find the way to change it


Ripthorn

Re: arduino tap tempo for pt2399 ?
« Reply #1 on: November 29, 2020, 10:05:05 AM »
I've posted a project on my website about doing exactly this using an Attiny85 for the tap functionality. It's based on the tap tempo scheme I've used on several other projects. It should work, though I've not built this standalone yet. It's pretty straightforward and I have schematic, code, etc. All available for free. https://scientificguitarist.wixsite.com/home/pt2399-tap-tempo
Exact science is not an exact science - Nikola Tesla in The Prestige
https://scientificguitarist.wixsite.com/home

iainpunk

Re: arduino tap tempo for pt2399 ?
« Reply #2 on: November 29, 2020, 11:19:47 AM »
why would you use an external DAC if you can just program PWM to control the LED!

cheers, Iain
half man - half snail - 6 feet to scale - Snail man's - not frail - He's been - to jail - snail man is fuccing real
『snailpilled』

carlozsulca

Re: arduino tap tempo for pt2399 ?
« Reply #3 on: November 29, 2020, 11:43:28 AM »
I've posted a project on my website about doing exactly this using an Attiny85 for the tap functionality. It's based on the tap tempo scheme I've used on several other projects. It should work, though I've not built this standalone yet. It's pretty straightforward and I have schematic, code, etc. All available for free. https://scientificguitarist.wixsite.com/home/pt2399-tap-tempo
Thanks for the link, great project by the way, I will try to get the Attiny85 and I will, perhaps the only thing that comes against is the complexity of the circuit, instead in the idea that I present, it is only to solder the atmega in smd and dac They take up very little space and the entire delay pcb could fit in a 1590b
can even generate waves with the dac and thus obtain a kind of vibrato

ElectricDruid

Re: arduino tap tempo for pt2399 ?
« Reply #4 on: November 29, 2020, 02:55:58 PM »
why would you use an external DAC if you can just program PWM to control the LED!

Yes, my thoughts exactly! I'm not familiar with the AVR/Arduinos but I bet you've got 10-bit PWM output, and maybe even better. That's loads for something like this (examples that use digipots only have 8-bit resolution, for example).

Perhaps more important is feedback from the PT2399's pin 5 clock output back to the Arduino so it can measure what delay length it has set. Otherwise you'll have to do some kind of "manual" calibration step.

carlozsulca

Re: arduino tap tempo for pt2399 ?
« Reply #5 on: November 30, 2020, 06:36:50 PM »
I've posted a project on my website about doing exactly this using an Attiny85 for the tap functionality. It's based on the tap tempo scheme I've used on several other projects. It should work, though I've not built this standalone yet. It's pretty straightforward and I have schematic, code, etc. All available for free. https://scientificguitarist.wixsite.com/home/pt2399-tap-tempo
Hello, I made all preparations to make the delay, tomorrow I will go to the electronics store, I had a query, the encoder switch must be 20 or 24 positions?

Ben N

  • Awesome!
  • ****
  • Posts: 4280
  • Total likes: 421
  • Ben N. - really! Now Israel, once Baltimore
Re: arduino tap tempo for pt2399 ?
« Reply #6 on: March 15, 2021, 06:42:02 AM »
Apologies for digging up zombies, but I just came across Brian's project, and it looks like a great add-on, even for one of those super-cheap PT2399 modules on Aliexpress, etc. Kudos!
One question: Brian, what about Tom's point re. pin 5 feedback/calibration?
Edit, a couple more questions:
As to the ATTiny85, 10mhz or 20mhz make a difference?
And - I can't open the schematic (png) on the Github site, is is the same as the one on your Wix page?
And - any more info on the rotary encoder, so I know what to order?
TIA
« Last Edit: March 15, 2021, 07:19:37 AM by Ben N »

Ripthorn

Re: arduino tap tempo for pt2399 ?
« Reply #7 on: March 15, 2021, 02:39:32 PM »
Hi Ben, encoder is any EC11 with switch. I typically run the attiny at 8 Mhz internal. I didn't do any pin 5 calibration, but the encoder will adjust relative to the trapped in time in small increments (2 or 4 ms, I think, I don't recall of hand). Schematic on github is the same a on the web page. After in home from vacation at the end of the week, I'll try to see about getting that fixed. I have used this module on a few different projects, such as the EchoWreck, but I haven't built it completely standalone yet, as it's always just been an integrated part of the circuit I was building. Feel free to provide any feedback.
Exact science is not an exact science - Nikola Tesla in The Prestige
https://scientificguitarist.wixsite.com/home