Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Complete Sensor Guide
      • Engineering Deep Dives
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Tech Terms
    • Webinars & Digital Events
  • Resources
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • White Papers
  • Guest Post Guidelines
  • Advertisers
    • Advertise
    • PR Submissions
    • Eblast Submissions
  • Subscribe

Time Division Multiplexing: Hardware Implementation

By Soham Chetan Kamani April 21, 2008

 

Have you ever wondered how thousands of people make phone calls and communicate at the same time, yet there are only 4 wires on each telephone pole, that accommodate all these calls. We all know that the is one wire to our house and one to the house of the person we want to call, but how is it possible that our lines and the lines of every other person living in our neighbourhood, all send information through only one common line, and furthermore, how is everyones information received simultaneously at the other end?

The answer lies in a simple concept called time division multiplexing. Although modern telecommunication networks use much faster and more efficient methods, time division multiplexing or TDM for short was an important communication technique in older days, and can still be used effectively for small networks.
This tutorial is going to take you through the main concept involved in TDM and also show you how you can implement it using hardware .
Principle of TDM
Image demonstrating principle of Time Division Multiplexing
Fig. 1: Image demonstrating principle of Time Division Multiplexing
As we can see in the above diagram, all bits are fed into a common multiplexor, after which they get transmitted on a single transmission line to a demultiplexor, which delivers the respective bits the recipients. The main idea here is that the multiplexor and demultiplexor are both timed at the sam time, i.e. the selector lines of the multiplexor and demultiplexor are given the same values at the same, short interval of time. Suppose there are equally spaced times t1,t2,t3,t4. Then from time t1 up till time t2,the selectors of the mux and demux are given 000 input, so the first bit is transmitted. Similarly between t2 and t3, the second bit is transmitted, and the third bit between t3 and t4.the important factor here is the interval of time, which must be less than half of the time period of either of the signals giving bit1 bit2 or bit3 (See nyquist criterion )
Hardware Implementation
There are a number of ways to implement TDM in terms of hardware. The most direct way is to use a multiplexor and a demultiplexor and use a timing circuit to give the selector pins the inputs. However we are going to use a different approach, which uses the arduino as a timing circuit as well as a demux. This decreases the probability of error in the output, makes it easier for us to observe the output on a serial monitor and also removes an entire IC from the circuit, making the soldering and connecting much easier.
Components required
      1.      LEDs   x8
      2.      300ohm resistor x8
       3.      IC 74150 mux
       4.      8-bit DIP switch          
       5.      Arduino microcontroller board
       6.      Connecting wires and jumper cables
Working principle
       1.      The arduino gives binary values from 000 till 111 through its pins into the selector pins of the mux.
       2.      The selector pin D is always kept at LOW because we only consider the first 8 outputs.
       3.      The input region of the mux is connected to the 8bit DIP switch which selects the input, the other end being connected to ground.
        4.      The strobe and enable are also connected to ground, as per the datasheet of 74150
       5.      The binary values of the arduino change at a fixed time interval. The output on that time interval from the mux is fed to the arduino and it is in turn applied to the respective LED.thus at the next time interval the input value at the next pin of the mux is fed to the next LED.
      6.      Therefore the only output wire from the mux is also the only input wire to the arduino. Thus all the 8bit information is fed simultaneously to the arduino through one wire, thus demonstrating TDM successfully.

 Process and Output Images

Procedure and Guidelines
       ·         Make the circuit according to the circuit diagram
       ·         It is suggested the the 5v pin present in the arduino is used as the power source to the multiplexor.
       ·         The circuit is best constructed in a PCB, or otherwise soldered onto a perf board.
       ·         If solder is used, remember to always use an IC socket to make the IC connections first, as soldering the IC directly will damage it.
       ·         Instead of using 8 separate resistors for each LED , you can use a single common 300ohm resistor for simplicity
       ·         Since pin0 and pin1 of the arduino are also its Rx and Tx pins, used for serial communication, you might experience interference in output for the first two LEDs, but this is normal. If you wish to obtain a better output, disable the serial communication on the arduino. However, you won’t be able to observe the output on the serial monitor if you choose this option.
       ·         After all the connections are made and verified, flash the program code on to the arduino using the arduino software.
Prototype of Arduino Based Time Division Multiplexer
            Fig. 2: Prototype of Arduino Based Time Division Multiplexer
 
Image of Arduino based Time Division Multiplexer
              Fig. 3: Image of Arduino based Time Division Multiplexer
 
Image showing output of Time Division Multiplexing with the help of LEDs
          Fig. 4: Image showing output of Time Division Multiplexing with the help of LEDs

 

Project Source Code

###

int bit2=9;
int bit1=8;
int bit0=10;
void setup(){
  
  Serial.begin(9600);
  pinMode(8,OUTPUT);
  pinMode(9,OUTPUT);
  pinMode(10,OUTPUT);
  pinMode(12,INPUT);
  pinMode(2,OUTPUT);
  pinMode(3,OUTPUT);
  pinMode(4,OUTPUT);
  pinMode(5,OUTPUT);
  pinMode(6,OUTPUT);
  pinMode(7,OUTPUT);
}
void loop(){
  digitalWrite(bit2,LOW);
  digitalWrite(bit1,LOW);
  digitalWrite(bit0,LOW);
  Serial.print(digitalRead(12));
  digitalWrite(7,digitalRead(12));
  delay(10);
  //--------------------------
  digitalWrite(bit2,LOW);
  digitalWrite(bit1,LOW);
  digitalWrite(bit0,HIGH);
  Serial.print(digitalRead(12));
  digitalWrite(6,digitalRead(12));
  delay(10);
  //--------------------------
  digitalWrite(bit2,LOW);
  digitalWrite(bit1,HIGH);
  digitalWrite(bit0,LOW);
  Serial.print(digitalRead(12));
  digitalWrite(5,digitalRead(12));
  delay(10);
  //--------------------------
  digitalWrite(bit2,LOW);
  digitalWrite(bit1,HIGH);
  digitalWrite(bit0,HIGH);
  Serial.print(digitalRead(12));
  digitalWrite(4,digitalRead(12));
  delay(10);
  //--------------------------
  digitalWrite(bit2,HIGH);
  digitalWrite(bit1,LOW);
  digitalWrite(bit0,LOW);
  Serial.print(digitalRead(12));
  digitalWrite(3,digitalRead(12));
  delay(10);
  //--------------------------
  digitalWrite(bit2,HIGH);
  digitalWrite(bit1,LOW);
  digitalWrite(bit0,HIGH);
  Serial.print(digitalRead(12));
  digitalWrite(2,digitalRead(12));
  delay(10);
  //--------------------------
  digitalWrite(bit2,HIGH);
  digitalWrite(bit1,HIGH);
  digitalWrite(bit0,LOW);
  Serial.print(digitalRead(12));
  delay(10);
  //--------------------------
  digitalWrite(bit2,HIGH);
  digitalWrite(bit1,HIGH);
  digitalWrite(bit0,HIGH);
  Serial.println(digitalRead(12));
  delay(10);
  //--------------------------
  
}

###

 


Circuit Diagrams

Circuit-Diagram-Arduino-Based-Time-Division-Multiplexing-Prototype


Filed Under: Electronic Projects
Tagged With: tdm, time division multiplexing
 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

Log in to leave a comment:

Lost your password?

Don't have an account? Register here

Submit a Guest Post

submit a guest post

EE TECH TOOLBOX

“ee
Tech Toolbox: Wide Bandgap Semiconductors
Moving from silicon to GaN or SiC feels like a whole new ballgame, doesn’t it? It isn’t just about faster switching; it’s about managing the layout parasitics and thermal realities that come with that speed. This month’s Tech Toolbox features a curated eBook that tackles these design hurdles head-on.

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS feed: EDABOARD.com Discussions. EDABOARD.com Discussions.

  • Flyback converter working incorrectly
  • SX1262 From Component Selection Pitfalls to a Working LoRa Link
  • Sheet Resistance for 65nm TSMC
  • SCR / Thyristor firing card connection
  • 【Smart Clock, Unlimited Frequencies on Demand】

RSS feed: Electro-Tech-Online.com Discussions Electro-Tech-Online.com Discussions

  • Electronics and PIC Programming Assembler Update
  • How to charge 3S1P LFP batteries?
  • Merit A-2900 universal audio output transformer
  • PIC code for 2.42" I2C OLED Display?
  • Want Thermal Camera with Fixed Thermal Span option

Featured Tutorials

LoRa and LoRaWAN: A Complete Guide to Wireless Communication

  • Best practices for securing LoRa networks
    Best practices for securing LoRa networks
  • Understanding LoRa architecture: nodes, gateways, and servers
    Understanding LoRa architecture: nodes, gateways, and servers
  • Revolutionizing RF: LoRa applications and advantages
    Revolutionizing RF: LoRa applications and advantages
  • How to build a LoRa gateway using Raspberry Pi
    How to build a LoRa gateway using Raspberry Pi
  • How LoRa enables long-range communication
    How LoRa enables long-range communication
  • How communication works between two LoRa end-node devices
    How communication works between two LoRa end-node devices
More Tutorials >

Recent Articles

  • Rohde & Schwarz launches handheld combi analyzer
  • Taoglas adds CRPA reference design for GNSS
  • GigaDevice launches GD32H7 MCUs for industrial control
  • Diodes adds automotive high-side switches for 12V loads
  • Building a touchscreen calculator with Arduino and an ILI9486 TFT display

EE ENGINEERING TRAINING DAYS

engineering
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2026 Arrowfly LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of Arrowfly
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Complete Sensor Guide
      • Engineering Deep Dives
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Tech Terms
    • Webinars & Digital Events
  • Resources
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • White Papers
  • Guest Post Guidelines
  • Advertisers
    • Advertise
    • PR Submissions
    • Eblast Submissions
  • Subscribe