philipellisis / arduino-virtual-pinball-board

This is some simple code to make a virtual pinball compatible board that works off of the Arduino firmware
17 stars 8 forks source link

Schematic #8

Closed SJoWie80 closed 9 months ago

SJoWie80 commented 1 year ago

Hi there.

i like to build this. is there any schematic on how to connect the MPU-6050, PCA9685 & 74HC165?

Thanks! Joey

SJoWie80 commented 1 year ago

i have tried to make a fritzing schematic (first time) can someone look and see if my connections are right? also i cant seem to find where the three shift registers need to connect to.

pinone

philipellisis commented 1 year ago

This is pretty close, the SDA/SDL lines are pretty simple so you have those setup right. The shift register connect as follows: SHIFT/LOAD -> PD4, CLOCK and CLOCK INHIBIT -> PD3, QH -> PD2.

There is a pretty good schematic you can follow here that will show you how to connect the button side: https://playground.arduino.cc/Code/ShiftRegSN74HC165N/

SJoWie80 commented 1 year ago

Thank you for your reply.

i managed to get the buttons and mpu working and the first 15 outputs. howver the pca9685 seems to be reversed: On is Off / Off is On

philipellisis commented 1 year ago

Yes, PCA9685 is set to sync current, so you will run 5v to the leds or other outputs and the negative side goes to the PCA9685.

On Sat, Oct 14, 2023 at 9:49 AM SJoWie80 @.***> wrote:

Thank you for your reply.

i managed to get the buttons and mpu working and the first 15 outputs. howver the pca9685 seems to be reversed: On is Off / Off is On

— Reply to this email directly, view it on GitHub https://github.com/philipellisis/arduino-virtual-pinball-board/issues/8#issuecomment-1762921583, or unsubscribe https://github.com/notifications/unsubscribe-auth/AENMHGXET253W6QV6MNJUYDX7KJ6FAVCNFSM6AAAAAA54SGLGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRSHEZDCNJYGM . You are receiving this because you commented.Message ID: @.*** com>

CrazyCoder commented 1 year ago

FYI, I found a pre-made PCB (3x 74HC165 ICs) with connectors that may be useful for this project: https://www.aliexpress.us/item/3256804661575696.html. Allows plugging 24 buttons.

matgenois commented 11 months ago

Is the PWM9685 considered an extension board or the main board in the output section of the configuration tool?

matgenois commented 11 months ago

From what I've seen in the code, the first output of the pwm9685 would be the output #16 in the mainboard output tab

philipellisis commented 11 months ago

That's correct, the main board on the PinOne does have one pwm9685 built into it. You could still use the 15 outputs that are tied to the data pins as outputs without a pwm9685 and will work just fine that way.