Here's the relevant schematic portion of the board that will be inside the model:
The steady-on LEDs are on the RHS. Both them and the 12F683 PIC are powered by the same +5V input.
Here's the relevant schematic portion of the board that will be inside the model:
The steady-on LEDs are on the RHS. Both them and the 12F683 PIC are powered by the same +5V input.
You imply that with the PWM controlled voltage, you will power also the PIC12F683 circuit?
Ioannis
PIC will not be hurt. But as Amoque noted, it will keep reseting because it cannot work from 0 volts, right?
You have to make new electric connections.
Ioannis
The board is only 1.5" in diameter and I don't think I can fit anything more on it:
I don't think the PIC restarting is a problem since all it does is blink 5 LEDs at separate rates, so if it's turning-on-and-turning-off then that could look OK.
I think that you might easily do both with the same chip. Google "transistor as switch" this will allow all five LEDS to ramp-up from the same PWM output without issue (and the power needed to run them will not go through the PIC). You might use the same technique to tie several (or all) of the flashers together as well. This would be a good precaution to take regardless as there is a maximum output allowed from the chip. An I2C port expander would also provide 6 additional output pins (subtracting the two PIC I2C pins required from the 8 on the expander equals a net gain of 6) if you can spare the room.
The problem with an external PWM to run the PIC (if I understand rightly) is that it will be constantly resetting as the PWM signal goes to zero
Also in you OP you state your using a 16F1283, but in the schematic is a 12F683. Please clarify.
Last edited by Amoque; - 22nd January 2016 at 14:17.
Last edited by RossWaddell; - 22nd January 2016 at 19:29.
Bookmarks