Motorized Slide Potentiometer Controller using ATTiny804

Sdílet
Vložit
  • čas přidán 25. 07. 2024
  • PCBWay Supports High Precision Advanced PCBs: www.pcbway.com/
    This motorized slider pot controller uses an ATTiny804 to receive I2C commands and then uses an L293DD motor driver to move the fader to the target position.
    This pcb was designed to fit onto the Bourns PSM series of motorized pots and provide connectors for digital and motor power, I2C, and has a passthrough connector to chain multiple pots, sharing logic power and the I2C bus.
    Sketch/Schematic: github.com/GadgetReboot/PSM60...
    PCBs at PCBWay.com: www.pcbway.com/project/sharep...
    0:00 Project overview
    2:59 I2C Motor control circuit
    4:21 ATTiny sketch and Uno master I2C controller sketch
    6:26 Motorized pot demo
    If you'd like to support the channel, you can:
    Support me on Patreon: / gadgetreboot
    Become a channel member (click the Join button): / gadgetreboot
    Shop through my affiliate links (I may earn a small commission, costs you nothing)!
    Banggood www.banggood.com/custlink/3vK...
    Aliexpress s.click.aliexpress.com/e/_AFeHwB
    Amazon.com www.amazon.com/?&_encoding=UT...
    Amazon.ca www.amazon.ca/?&_encoding=UTF...
    Videos are mirrored at LBRY/Odysee: odysee.com/@GadgetReboot:4
    #ElectronicsCreators
  • Věda a technologie

Komentáře • 15

  • @AnotherMaker
    @AnotherMaker Před 2 lety +2

    Those things are so ridiculously cool. Nice work.

  • @andymouse
    @andymouse Před 2 lety +1

    Great work Sir !...cheers.

  • @alvarobyrne
    @alvarobyrne Před 2 lety +1

    great content as usual

  • @PCBWay
    @PCBWay Před 2 lety +2

    What an educational tutorial it is@!

  • @electronic7979
    @electronic7979 Před 2 lety +2

    👍

  • @tengelgeer
    @tengelgeer Před 2 lety +1

    I've always found those faded quite magical :) I would have used the spare IO to set an I2C address. Or an RGB led.
    And for the code, always find the mapping to 1023 weird. That makes the spacing for 100 smaller than for the rest. Also, leave the float at home, probably saves halve the memory.
    int target = (buf(long) * 1024) / 100;
    v2 software, calibration fo min/max? No delay? More resolution? PID? Position readback?

    • @GadgetReboot
      @GadgetReboot  Před 2 lety +1

      Yeah I never really know if 1023 or 1024 is more appropriate and when I read the cases for each, I get lost more. The thing that makes most sense is there are 1024 steps from 0 to 1023 but it still ends up not quite right. Maybe trying experiments on that scaling could help me come to a decision on what seems best.
      I think the main reason I didn't bother with hard wiring I2C addresses is I plan to have more than 8 on one bus so then I'd either need 4 address pins for one base addr or start to hard code multiple base addresses and I decided if I have to hard code, may as well just code the address entirely, but there may be a hardware revision if I keep working on these and decide I do have that many spare IO I can use for that.
      I thought about an LED but decided the units will be hidden under an enclosure anyway so they'd only serve as debug, so I could do without them on the bench.
      The float was taken from some other hacked code so definitely room for optimizing. The program took 45% of the code space so at least I could get it going fast.
      Lots of features can be put in for better control and feedback and reporting status back over I2C to master, if I can get motivated! But I'm also getting back toward that DTMF stuff and telephone hardware. I still have some of those code modifications you suggested on DTMF way back...

    • @GadgetReboot
      @GadgetReboot  Před 2 lety +2

      I just tried out removing the float on that calculation and the code went from 45% to only 37%!

  • @zaprodk
    @zaprodk Před 2 lety

    You might want to look into some PID algorithm to make sure it doesn't ends up vibrating like hobby servos do.

  • @ianmcclain2159
    @ianmcclain2159 Před 8 měsíci

    Hi! Do you have a BOM for this anywhere for PCBWay assembly?

    • @GadgetReboot
      @GadgetReboot  Před 8 měsíci

      I need to go look up part numbers and double check if there’s any parts that are not supposed to be populated by default and create it and update the project files. It’s on a task list.

    • @GadgetReboot
      @GadgetReboot  Před 8 měsíci

      I just added a BOM to the Github project files as well as directly on the PCBWay shared project.

    • @ianmcclain2159
      @ianmcclain2159 Před 8 měsíci +1

      You are the best!!! 🎉

  • @d.j.peters
    @d.j.peters Před 2 lety

    What do you have to pay for 32 motor audio faders ? 20 years ago I was thinking about to build a MIDI controlled motor/fader 32 channel audio mixer but the price for the 32 motor faders for a 'private custumer' was much higher than a ready build product to buy !

    • @GadgetReboot
      @GadgetReboot  Před 2 lety

      I don’t know if there are cheaper ones but these were around $20 each which is a lot but I wanted to do multiple projects so I plan to just be able to unplug them and move them around like a modular fader box