Stories
Slash Boxes
Comments

SoylentNews is people

The Fine print: The following are owned by whoever posted them. We are not responsible for them in any way.

Journal by cafebabe

I sent something similar to a friend who gave me two audio amplifier boards:-

I've failed with the PAM8403 audio boards. Removing the 22nF capacitors seems to tie output to supply Voltage. This may be due my poor unsoldering or the 22nF capacitors having oscillator functionality in addition to blocking DC drift from audio input. It may be possible to connect the 22nF capacitors to ground (for the purpose of oscillation?) and connect signal behind the capacitors (for the purpose of permitting DC drift for motor control).

People at my makerspace are quite amused that a turtle or tank robot could be controlled with stereo audio output and an 80 cent audio amplifier. Four or more PAM8403 chips multiplexed with a 4052 chip or suchlike and controlled with two or more GPIO pins would be particularly cheap but effective.

After a technical argument at the makerspace about Lego motor specifications, it was determined that approximately all Lego motors (from 3V to 9V, excluding servo motors) may be compatible with a PAM8403. This applies much more generally - if a PAM8403 chip can be made to work with a DC offset.

Also, two of the amateur radio enthusiasts and electronics experts at the makerspace were particularly impressed by the size and cost of PAM8403 boards. However, they confirmed that D-Class amplifiers cannot be ganged.

If anyone can get this working then you'll be *very* popular.

Display Options Threshold/Breakthrough Reply to Article Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
(1)
  • (Score: 2) by LoRdTAW on Thursday June 08 2017, @09:15PM (6 children)

    by LoRdTAW (3755) on Thursday June 08 2017, @09:15PM (#522798) Journal

    Before going any further, why use audio amps to drive a motor? Cost? Novelty? Proof of concept? (From your post I gather proof of concept)

    While they look like they can drive a motor, they are designed to operate at audio frequencies and the fixed impedance of the speaker coil. The non uniform impedance and noise of the motor due to brush bounce along with back emf might wreak havoc on any feedback control internal to the chip.

    Why not use modern motor driver like the MAX14870 [maximintegrated.com]? All it wants is, power, a PWM signal, and direction signal via a digital pin. It even has a fault feedback pin. Code is kept simple and you don't have the problem of trying to get an analog signal out of the arduino using a DAC or PWM->Analog with filters or chip. A breakout board isn't as cheap as the PAM but it will do the job right the first time: https://www.pololu.com/product/2961 [pololu.com] Cheap compared to the time wasted trying to pound the square peg into the round hole.

    • (Score: 2) by cafebabe on Thursday June 08 2017, @11:45PM (5 children)

      by cafebabe (894) on Thursday June 08 2017, @11:45PM (#522850) Journal

      The friend who gave me two PAM8403 boards also had the most recent two issues of MagPi [raspberrypi.org]. (Issue 57 [raspberrypi.org] and Issue 57 [raspberrypi.org], although all previous issues are freely available plus bonus content [raspberrypi.org].) From Issue 58, several people are shocked that a 13 year old kid has been working on a Scratch to Python migration path for 15 months. That means the kid was 11 or 12 when he started.

      Anyhow, I wanted to get into the mindset of doing stuff at pocket-money prices and mis-using cheap hardware; much like hackers at the Homebrew Computer Club who used televisions for computer monitors and cassette tape for storage. Now we've got a generation of makers who buy Bluetooth modules for US$4 and stereo amplifiers for US$0.80. The correct implementation would be to use a motor driver but the "worse is better" implementation provides eight channels at less cost.

      If you get something like this working then geeks (who, in a previous era would have made a hot-rod, a hi-fi or an eight bit computer) will think nothing of making an eight motor robot and controlling it with a scripting language.

      --
      1702845791×2
      • (Score: 2) by LoRdTAW on Saturday June 10 2017, @03:29AM (1 child)

        by LoRdTAW (3755) on Saturday June 10 2017, @03:29AM (#523367) Journal

        A simple test I can think of is to leave the board as is (leave the input caps alone), get a function generator, and see if a 1V peak unipolar signal using a square, or sine wave can cause motion. Experiment with different frequencies starting low. You also want an oscilloscope to watch the motor. Just be sure you know how to connect it. Don't put the ground of the probe to the motors negative, hook it to the boards power negative.

        Now for some commentary.

        Anyhow, I wanted to get into the mindset of doing stuff at pocket-money prices and mis-using cheap hardware;

        Misusing only works when it able to do what you want it to do. The bargain bin geeks don't purposefully misuse hardware, they recycle hardware. Usually they pick through trash and cannibalize parts from things like printers, DVD/CD players and so forth.

        much like hackers at the Homebrew Computer Club who used televisions for computer monitors and cassette tape for storage.

        That's because the computers of old did use televisions as their monitors. My first PC, a Franklin Ace 1200, used a standard NTSC video monitor. If you wanted, any TV with a video input would work. Only those weren't common in the 70-'s/80's. By the 90's just about any TV you bought had a composite video input. I later used that monitor later on to watch TV and movies using a VCR, and hooked our Nintendo to it. And yes, cassette tapes were used to store programs in the 8 bit era. That wasn't a hacker thing, it was commercially available. There wasn't anything special about either of those two. The real geeks were building 8 bit computers from kits or on breadboards.

        Now we've got a generation of makers who buy Bluetooth modules for US$4 and stereo amplifiers for US$0.80.

        That's progress. Back in ye olde days, you could bread board or wire wrap your own analog or digital circuits for a few bucks. Things were less integrated and everything was pretty discreet. Back then you could build video frame grabbers, control relays, motors, read inputs, analogue control, etc. It was just more difficult and required a lot of knowledge because you pretty much had to build things from scratch. Now you have entire computers including ram and rom on a tiny chip with a boat load of peripherals for only a few cents. Even the PWM circuits in them can generate two and three phase outputs with dead-time control for motor control and even inverters. That level of integration was unheard of (and impossible given the technology of the era). The internet also played a huge role in bringing that knowledge to the masses much easier.

        The correct implementation would be to use a motor driver but the "worse is better" implementation provides eight channels at less cost.

        You have it backwards. Worse means "less functionality", functionality as in features. The idea is applied to software where adding more functionality doesn't necessarily make the software better. It just makes it more complicated. Worse is better simply means to build something with less features so you can focus on quality and simplicity. In your case, you are increasing the complexity and using components in applications they were not intended for which could decrease reliability. The "worse" route in your case would be to purchase motor drivers and build a robot the right way :p. There are other driver chips that are cheaper but they require you know how to do proper high/low PWM driving.

        If you get something like this working then geeks (who, in a previous era would have made a hot-rod, a hi-fi or an eight bit computer) will think nothing of making an eight motor robot and controlling it with a scripting language.

        I see what your intentions are. I suppose the super cheap route is a motivator since money is limited. But I cant help but feel that this is more for getting geek cred or feeding an ego. To me, that's unfair to the other geeks because you're more concerned about this little endeavor than actually getting people motivated to build a cool robot. Focus on the robot, that's the important part. No disrespect in that statement. Only an observation. I see many maker types seemingly more interested in feeding their ego and trying to be the king of geeks at their maker space than being a good geek and getting the project done.

      • (Score: 2) by LoRdTAW on Saturday June 10 2017, @03:31AM (2 children)

        by LoRdTAW (3755) on Saturday June 10 2017, @03:31AM (#523368) Journal

        Lets try this again:
        A simple test I can think of is to leave the board as is (leave the input caps alone), get a function generator, and see if a 1V peak unipolar signal using a square, or sine wave can cause motion. Experiment with different frequencies starting low. You also want an oscilloscope to watch the motor. Just be sure you know how to connect it. Don't put the ground of the probe to the motors negative, hook it to the boards power negative.

        Now for some commentary.

        Anyhow, I wanted to get into the mindset of doing stuff at pocket-money prices and mis-using cheap hardware;

        Misusing only works when it able to do what you want it to do. The bargain bin geeks don't purposefully misuse hardware, they recycle hardware. Usually they pick through trash and cannibalize parts from things like printers, DVD/CD players and so forth.

        much like hackers at the Homebrew Computer Club who used televisions for computer monitors and cassette tape for storage.

        That's because the computers of old did use televisions as their monitors. My first PC, a Franklin Ace 1200, used a standard NTSC video monitor. If you wanted, any TV with a video input would work. Only those weren't common in the 70-'s/80's. By the 90's just about any TV you bought had a composite video input. I later used that monitor later on to watch TV and movies using a VCR, and hooked our Nintendo to it. And yes, cassette tapes were used to store programs in the 8 bit era. That wasn't a hacker thing, it was commercially available. There wasn't anything special about either of those two. The real geeks were building 8 bit computers from kits or on breadboards.

        Now we've got a generation of makers who buy Bluetooth modules for US$4 and stereo amplifiers for US$0.80.

        That's progress. Back in ye olde days, you could bread board or wire wrap your own analog or digital circuits for a few bucks. Things were less integrated and everything was pretty discreet. Back then you could build video frame grabbers, control relays, motors, read inputs, analogue control, etc. It was just more difficult and required a lot of knowledge because you pretty much had to build things from scratch. Now you have entire computers including ram and rom on a tiny chip with a boat load of peripherals for only a few cents. Even the PWM circuits in them can generate two and three phase outputs with dead-time control for motor control and even inverters. That level of integration was unheard of (and impossible given the technology of the era). The internet also played a huge role in bringing that knowledge to the masses much easier.

        The correct implementation would be to use a motor driver but the "worse is better" implementation provides eight channels at less cost.

        You have it backwards. Worse means "less functionality", functionality as in features. The idea is applied to software where adding more functionality doesn't necessarily make the software better. It just makes it more complicated. Worse is better simply means to build something with less features so you can focus on quality and simplicity. In your case, you are increasing the complexity and using components in applications they were not intended for which could decrease reliability. The "worse" route in your case would be to purchase motor drivers and build a robot the right way :p. There are other driver chips that are cheaper but they require you know how to do proper high/low PWM driving.

        If you get something like this working then geeks (who, in a previous era would have made a hot-rod, a hi-fi or an eight bit computer) will think nothing of making an eight motor robot and controlling it with a scripting language.

        I see what your intentions are. I suppose the super cheap route is a motivator since money is limited. But I cant help but feel that this is more for getting geek cred or feeding an ego. To me, that's unfair to the other geeks because you're more concerned about this little endeavor than actually getting people motivated to build a cool robot. Focus on the robot, that's the important part. No disrespect in that statement. Only an observation. I see many maker types seemingly more interested in feeding their ego and trying to be the king of geeks at their maker space than being a good geek and getting the project done.

(1)