SPARKY & SPECIAL EFFECTS ENGINEER.
  • Home
  • About Me
    • Contact
    • Qualifications
    • Sailing
  • Stage, TV, Film and Props
    • Stage and TV >
      • Stranger Things
    • Props and replicas >
      • Knife Crime Scenario Mobile Phone
      • Mission Impossible Fallout - Weapon >
        • The Main Weapon
        • The Remote
      • PASIV Case (Inception)
      • UA-571-C Sentry gun (Aliens)
      • The Tardis
      • Thunderbirds Intercom
      • Themed Mini Golf
    • Galaxis Showtek control modules
    • Bespoke PCB's and electronics
  • Electronics
    • Picaxe >
      • 08m2 Learning current detector
    • Arduino
    • Teensy
    • Teensy 4.1 DIN rail system
  • My Projects
    • Mini Roadster R59 Rear Active Spoiler
    • Seat Cupra Born V2 >
      • Cupra sound effects system
      • Extra RGB
    • Ford Ranger >
      • The Ranger's Electronics
      • The 2018 rebuild
      • The 2022 Rebuild?
    • 1:72 Scale RC Submarine >
      • Radio Controlled submarine. The 2020 rebuild
    • HIDecho
    • Multi-Function SFX board
    • Starship bed >
      • Starship Electronics
      • The cockpit
      • Navigation console
      • The power supply
      • The self destruct system
      • Android App
    • TNAC (Thermal Nuclear Alarm Clocks) >
      • TNAC - The 2020 update
      • TT1 TNAC (Tabletop version)
    • The Pirate Ship
    • The Enchanted Forest
    • Christmas Vacation Advent House
    • Phone based SMD Microscope
    • Model railways
    • Misc
  • 3d Printing & CNC
    • Tinkercad and Fusion360
    • 3d printed CNC machine >
      • Wireless CNC controller
      • My CNC wiring
      • Joystick controller
      • Serial switch
      • Laser time
    • Prusa mk3s+
    • FlashForge 3d Printer >
      • Flashforge GSM Monitor
    • RoStock Max V2 3d printer >
      • 3D Printer Enclosure

Box of serial

Why limit yourself to only two Serial ports? (said no-one ever)

Picture

My Rambo main controller board has 2 active serial ports.
Serial 0 is the USB connection from my laptop, and serial 1 is the secondary port that you can enable in Configuration_adv.h.

My Joystick controller requires a serial connection to service the 'Reset origin' button on the top of the joystick.

However, I also have my wireless tablet attached to my Rambo board.
I could either risk just connecting them all, and not transmitting serial data at the same time, or I believe they can all join together through diodes.

But, after some scratching around in the workshop, I dug out some (very old) 4000 series IC's.
My first design used a 4066 4 gang switch and a 4001 series quad Nor gate.

It worked, but it soon became apparent that is was less than an elegant design, and you still in theory, connect more than one serial data source at the same time (so therefore, not completing it's task).
Picture
So, after making the initial stripboard, I swapped the 4066 for a 4051. This is an eight way multiplexer IC, and I had a few of them lying around.   This is a better switch IC, as it's break before make and you cannot mix the channels.

It uses an address on the A,B and C pins to connect one of it's eight output pins to the input pin.  I only needed three connections, but I made the board with a possible four serial switches for future use.

The 4000 Nor gate became surplus, so I just used it to show a 'Default' LED indicator.
Picture
Picture

As usual, I just picked some random LEDs out of my stock box, and upon powering up the unit, I found that the power indicator was slightly brighter than a collapsed star.

I also installed a HC-05 Bluetooth receiver.  This has an output that goes high when it's connected to a phone.

So, I used this output to automatically switch the serial across to the Bluetooth when a phone is connected.

You can also select one of the other three serial sources by either applying 5v to one of the screw terminals, or operating the DIP switches 1-3.
Dip switch 4 changes the HC-05 modules Enable/Key input between Data mode and AT mode.

I ran this little unit off it's own 7805 5v regulator, as the Bluetooth module does suck a lot of juice. Also, it has a hefty capacitor across it, as they are pretty noisy.

Add a 3d printed enclosure and job done.


Proudly powered by Weebly
  • Home
  • About Me
    • Contact
    • Qualifications
    • Sailing
  • Stage, TV, Film and Props
    • Stage and TV >
      • Stranger Things
    • Props and replicas >
      • Knife Crime Scenario Mobile Phone
      • Mission Impossible Fallout - Weapon >
        • The Main Weapon
        • The Remote
      • PASIV Case (Inception)
      • UA-571-C Sentry gun (Aliens)
      • The Tardis
      • Thunderbirds Intercom
      • Themed Mini Golf
    • Galaxis Showtek control modules
    • Bespoke PCB's and electronics
  • Electronics
    • Picaxe >
      • 08m2 Learning current detector
    • Arduino
    • Teensy
    • Teensy 4.1 DIN rail system
  • My Projects
    • Mini Roadster R59 Rear Active Spoiler
    • Seat Cupra Born V2 >
      • Cupra sound effects system
      • Extra RGB
    • Ford Ranger >
      • The Ranger's Electronics
      • The 2018 rebuild
      • The 2022 Rebuild?
    • 1:72 Scale RC Submarine >
      • Radio Controlled submarine. The 2020 rebuild
    • HIDecho
    • Multi-Function SFX board
    • Starship bed >
      • Starship Electronics
      • The cockpit
      • Navigation console
      • The power supply
      • The self destruct system
      • Android App
    • TNAC (Thermal Nuclear Alarm Clocks) >
      • TNAC - The 2020 update
      • TT1 TNAC (Tabletop version)
    • The Pirate Ship
    • The Enchanted Forest
    • Christmas Vacation Advent House
    • Phone based SMD Microscope
    • Model railways
    • Misc
  • 3d Printing & CNC
    • Tinkercad and Fusion360
    • 3d printed CNC machine >
      • Wireless CNC controller
      • My CNC wiring
      • Joystick controller
      • Serial switch
      • Laser time
    • Prusa mk3s+
    • FlashForge 3d Printer >
      • Flashforge GSM Monitor
    • RoStock Max V2 3d printer >
      • 3D Printer Enclosure