Author Topic: Help with circuit advice.  (Read 1128 times)

0 Members and 1 Guest are viewing this topic.

Offline Regenerate3dTopic starter

  • Contributor
  • Posts: 15
  • Country: gb
Re: Help with circuit advice.
« Reply #25 on: September 01, 2024, 08:44:04 pm »
Fair enough i shall get onto prototype and get PCB cut tomorrow.
 

Offline Regenerate3dTopic starter

  • Contributor
  • Posts: 15
  • Country: gb
Re: Help with circuit advice.
« Reply #26 on: September 01, 2024, 08:54:37 pm »
Benta fantastic thank you.
 

Offline Benta

  • Super Contributor
  • ***
  • Posts: 6221
  • Country: de
Re: Help with circuit advice.
« Reply #27 on: September 01, 2024, 09:18:33 pm »
I hope you got the point about ULN2003A and ULN2803A.
One has 7, the other 8 drivers, giving you exactly 15 outputs. You could also standardise on the ULN2803A and use the spare output for something else.

Cheers.
 
The following users thanked this post: Nominal Animal

Offline tooki

  • Super Contributor
  • ***
  • Posts: 12577
  • Country: ch
Re: Help with circuit advice.
« Reply #28 on: September 01, 2024, 11:26:52 pm »
In your application, "flickering" is a human visual perception phenomenon.  Switching speed of 1kHz is more than adequate.

When you said fast switching, some might've thought 1MHz or more!
An Arduino Mega can’t do more than 490Hz PWM on most of its PWM pins, which is terrible for LEDs, but more than adequate for incandescent bulbs. One could reconfigure the PWM to 245Hz and get 16-bit PWM instead, and still be above what’s needed for flicker-free incandescent.

(Remember that mains light bulbs don’t flicker, even dimmed, and they’re pulsed at 100/120Hz effectively.)
 

Offline ledtester

  • Super Contributor
  • ***
  • Posts: 3249
  • Country: us
Re: Help with circuit advice.
« Reply #29 on: September 01, 2024, 11:56:33 pm »
An Arduino Mega can’t do more than 490Hz PWM on most of its PWM pins, which is terrible for LEDs, but more than adequate for incandescent bulbs. ...

490 Hz is only the default value using the Arduino libraries. Faster frequencies are possible -- see for instance:

https://www.etechnophiles.com/how-to-change-pwm-frequency-of-arduino-mega/

You can get F_CLK/256 for 8-bit PWM if you want, i.e. 62.5 KHz when using a 16 MHz system clock.
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 12577
  • Country: ch
Re: Help with circuit advice.
« Reply #30 on: September 02, 2024, 12:15:40 am »
An Arduino Mega can’t do more than 490Hz PWM on most of its PWM pins, which is terrible for LEDs, but more than adequate for incandescent bulbs. ...

490 Hz is only the default value using the Arduino libraries. Faster frequencies are possible -- see for instance:

https://www.etechnophiles.com/how-to-change-pwm-frequency-of-arduino-mega/

You can get F_CLK/256 for 8-bit PWM if you want, i.e. 62.5 KHz when using a 16 MHz system clock.
The problem is that one needs to be very careful when doing this, or else you can break all the other system timers, including the millis() and micros() functions. That’s why the Arduino libraries don’t expose any function to change the PWM frequencies. To change them, you have to go around the libraries and use bare C functions to set the timer configs.
 

Offline Regenerate3dTopic starter

  • Contributor
  • Posts: 15
  • Country: gb
Re: Help with circuit advice.
« Reply #31 on: September 02, 2024, 01:16:47 pm »
Indeed you are correct. I can use a mosfett to control dimming via arduino pwm and put that in series for the bulbs and used arrays to switch bulbs on and off?
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 12577
  • Country: ch
Re: Help with circuit advice.
« Reply #32 on: September 02, 2024, 02:37:11 pm »
MOSFET not "mosfett". (It's short for Metal Oxide Semiconductor Field-Effect Transistor, that is, a FET made with MOS technology.)

You can either use N-channel MOSFETs, or individual BJTs, or a BJT array like the ULN chips shown above.
« Last Edit: September 02, 2024, 02:47:16 pm by tooki »
 

Offline Regenerate3dTopic starter

  • Contributor
  • Posts: 15
  • Country: gb
Re: Help with circuit advice.
« Reply #33 on: September 02, 2024, 03:42:24 pm »
Excuses to spelling error. I'm currently using single sided copper pcb on cnc router but i cannot get free routing to only do single side auto routing! Any ideas?
 

Offline Benta

  • Super Contributor
  • ***
  • Posts: 6221
  • Country: de
Re: Help with circuit advice.
« Reply #34 on: September 02, 2024, 05:08:43 pm »
0 ohm resistors. Or just a wire.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf