Stacking 2 blue pills
Posted: Sat Apr 23, 2022 9:54 pm
i am building a set of desktop controls for my hobby of playing on train driving simulators,
i play on 2 different simulators which take different input methods, one simulator, via an external program can accept any USB joystick input, so for that one i flashed a bluepill with FreeJoy... which is a GUI programmable USB-HID joystick.
The other simulator can not accept usb joystick input, but someone has figured out a way to trick the simulator into accepting a serial string with the potentiometers positions,
so i run a simple arduino serial string type sketch on a seperate blue pill, that blue pill is programed as an arduino, using the stm32duino library (shows up as a maple mini... can you tell programming isn't my strong point)
So atm i have to swap boards over when i change simulators, physically unplugging the potentiometers and switches and plugging them into the other blue pill, even tho i have just 2 bits of strip board to unplug from one board, and plug into the other...then swap usb leads over, it's getting old fast, and i will break wires or wear the header sockets out i imagine.
So.... I thought i could be clever and stack 2 blue pills, so all pins are connected 1 for 1 between the 2 boards, the potentiometers and buttons will send the signals to both boards at once, and i will just swap the usb lead over to power up which ever board i want.
Only that didn't work, neither board will boot up when i do that.
So i'm wondering if there are some pins that i should disconnect between the 2 boards that might be causing them to not boot,
i'm thinking that maybe the reset pin (pin 7, NRST) shouldn't be shared between boards, but are there others i shouldn't have connected between both boards.
i play on 2 different simulators which take different input methods, one simulator, via an external program can accept any USB joystick input, so for that one i flashed a bluepill with FreeJoy... which is a GUI programmable USB-HID joystick.
The other simulator can not accept usb joystick input, but someone has figured out a way to trick the simulator into accepting a serial string with the potentiometers positions,
so i run a simple arduino serial string type sketch on a seperate blue pill, that blue pill is programed as an arduino, using the stm32duino library (shows up as a maple mini... can you tell programming isn't my strong point)
So atm i have to swap boards over when i change simulators, physically unplugging the potentiometers and switches and plugging them into the other blue pill, even tho i have just 2 bits of strip board to unplug from one board, and plug into the other...then swap usb leads over, it's getting old fast, and i will break wires or wear the header sockets out i imagine.
So.... I thought i could be clever and stack 2 blue pills, so all pins are connected 1 for 1 between the 2 boards, the potentiometers and buttons will send the signals to both boards at once, and i will just swap the usb lead over to power up which ever board i want.
Only that didn't work, neither board will boot up when i do that.
So i'm wondering if there are some pins that i should disconnect between the 2 boards that might be causing them to not boot,
i'm thinking that maybe the reset pin (pin 7, NRST) shouldn't be shared between boards, but are there others i shouldn't have connected between both boards.