SPECIAL EFFECTS ENGINEER.
  • Home
  • About Me
    • Contact
    • Qualifications
    • Sailing
  • Stage, TV, Film and Props
    • Stage and TV >
      • Stranger Things
      • Sir Mordred
      • Galaxis Showtek control modules
    • 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
    • Bespoke PCB's and electronics
  • Electronics
    • Picaxe >
      • 08m2 Learning current detector
    • Arduino
    • Teensy
    • Teensy 4.1 DIN rail system
  • My Projects
    • Happy Hunter RC Ship >
      • Transmitter
      • Receiver electronics
      • Working features
      • General construction
    • 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

teensy 4.1 is din the house

LET'S GO MODULAR


Teensy boards...   These have become my default processors now. 
Lets make it a bit more universal for my needs.

I searched around for a suitable range of Din enclosures that I could customise.  OKW enclosures fitted that brief and they also sent me some free modules to design with.
Just is case you didn't know,
DIN stands for Deutsche Institut fur Normung.  That roughly translates to “German Institute for Standards.

The starting point is the CPU module.
Picture
Picture
The main CPU module needs to provide for the rest of the items that may be attached to the right hand side of it when stacked on a DIN rail.

The Teensy 4.1 is mounted vertically with it's MicroSD card slot pointing out of the top.
To the right of this I have fitted 2x Micro USB ports.  One is an extension of the programming USB (Device) port and the other is the Host USB port.
Underneath the Teensy 4.1 is a slide switch that lets you activate an onboard Piezo.

90-265v AC feeds (via thermal fuses) a couple of enclosed PSU modules.  One give you 5v @ 1000mA and the other 3.3v @ 1272mA.

There is also a CR2032 battery for backup.

The PSU modules feed through a pair of i2c monitored current and voltage detectors.  This allows the Teensy to display or record the usage of the power buses if it wishes.

All the pins of the Teensy are broken out over two levels using 3.81mm centre plug-in screw terminals.
The mains input for all devices on the BUS system will be 5.08mm centre plugs so that you cannot connect the wrong plug into the module.

There is an onboard Ethernet socket and all outputs have an associated smd LED above them to indicate whether that pin is in used by an module plugged in further down the DIN rail bus system.
These LEDS are controlled the i2c addressed MCP23017 multiplexers.

Most pins are then also brought out on a 1.6mm PCB right angle edge connector to extend the BUS along the din rail.
Picture
Picture
The Mid PCB has a footprint to install a Seeed XIAO ESP32C3 WiFi module if you wish.

A surface mounted 18 way socket links the mid PCB to the top PCB.
There are many options for the top PCB. 
There is a multi-purpose board that allows for a 2.4" Touch TFT screen, buttons, magnetic hall sensors, rotary pots, small 0.91" Oleds etc.
You just populate as you require.

I also designed a test board that plugs into the bus socket with pads to help with testing and debugging.

The bus id system

All the slave modules on the BUS will need to be identified. This is achieved by allocating one of the Teensy 4.1's three i2c buses as the id bus.
Each module on the DIN rail will have the ability to select either the i2c id bus or the secondary i2c bus (this gives more address options).
The base code of the CPU module will then be able to identify when certain modules are plugged into the bus and both set up the communications correctly and illuminate any pins on the main CPU module that might now not be available to use (due to the pins being used by the slave module).


Slave modules

Picture
The next module along to the right will be the audio block.
This is because the comms lines to the audio module need to be as short as possible.

Teensy make an audio board that is based on the SGTL5000 audio module.  It would make sense to design mine around the same audio processor so that the library that is already available is compatible.

I could just plonk the Teensy audio board on my PCB, but where is the fun in that.  Plus, I wanted to add a few extra features of my own.

The base PCB has a couple of slide switches that allow a remote volume pot to be connected, and to control the power for the onboard amp.

Below the 36 way Bus connector is a dedicated line output for an amplifier (when I get around to designing that!)

At the bottom there is an SD card slot, dedicated to the audio board and the line in and line out terminal connectors.
I also added the ability to add extra memory for storing local audio files.

The Mid level PCB has Phono and jack  connectors for line in and out. 
A stereo headphone socket and a microphone input.

A connector to fit a volume pot to the front panel (if enabled), and a mute connection.

Then there is a PAM8406 5W stereo Amplifier.  This can have a pair of speakers mounted in the top level of the enclosure (they are small), but the amplifier output is also brought out onto plug-in screw terminals.

I also put a pair of pots to adjust the onboard amplifier levels.

Picture

Further modules

Picture
So far I have designed the following:
  1. A DMX module with fully opto-isolated communications.
  2. An MCP23017 Multiplexer based I/O expander. This gives the main CPU a further 16 input or output pins.
  3. A 41A Full H-Bridge motor driver module
  4. An 8 channel, 8A DPDT relay switching module
  5. A 16 channel servo controller with 2x 5A onboard power supplies (independent from the bus 5v)
  6. An 8 channel RGB LED driver module.

I am currently working on a dedicated 30w+30w Amplifer module for the audio block and a Mosfet switching module.
And I have lots more in the pipeline....


Picture
Powered by Create your own unique website with customizable templates.
  • Home
  • About Me
    • Contact
    • Qualifications
    • Sailing
  • Stage, TV, Film and Props
    • Stage and TV >
      • Stranger Things
      • Sir Mordred
      • Galaxis Showtek control modules
    • 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
    • Bespoke PCB's and electronics
  • Electronics
    • Picaxe >
      • 08m2 Learning current detector
    • Arduino
    • Teensy
    • Teensy 4.1 DIN rail system
  • My Projects
    • Happy Hunter RC Ship >
      • Transmitter
      • Receiver electronics
      • Working features
      • General construction
    • 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