Raspberry-Pi Based WAVEFORM GENERATOR
Electronics For You|October 2024
A waveform generator is a commonly used test and measurement instrument in electronics laboratories.
PRASANNA WAICHAL, ARPITA WAICHAL, NIKITA THORAT, PRAGATI TODKAR
Raspberry-Pi Based WAVEFORM GENERATOR

Waveforms of different functions, frequencies, and amplitude levels are often required to test the functionality of electronic circuits. Although the circuit presented is not a complete substitute for a laboratory-grade signal generator, it serves as a waveform/signal generator with widely used standard waveforms, such as sinusoidal, square, triangular, and linear forward and reverse ramps under software control.

Moreover, since it is completely software-driven, it provides the added advantage of an ‘arbitrary waveform generator’ allowing users to design and generate custom signal waveforms with adjustable rates (frequencies) or wave shapes. The device uses the popular Raspberry Pi SBC as the main host controller, along with a few easily available, low-cost components that both hobbyists and professionals can assemble quickly. The software is written in Python for the Raspberry Pi. Fig. 1 shows the block diagram of the Raspberry Pi-based waveform generator. The components needed for this device are listed in Table 1.

Circuit and working

Fig. 2 illustrates the circuit diagram of this waveform generator. It is built around a Raspberry Pi, an 8-bit serial shift IC (74HC595), and a few other components.

The working of the circuit is straightforward. As shown in Fig. 2, the core of this waveform generator is the voltage-output R-2R DAC, comprising resistors R2 to R17. This 8-bit DAC accepts digital input and converts it directly into a voltage output. Unlike a currentoutput DAC, there is no need for an external voltage-to-current circuit using an op-amp. Thus, this is a very compact circuit that requires no additional power. Further details about the working and operation of this R-2R DAC can be found in the October 2000 issue of EFY, in the article ‘R-2R DAC Based Waveform Generator Using PIC16C84 Microcontroller’. The output of this DAC is available at connector J1, which is labelled ‘DAC Output’.

This story is from the October 2024 edition of Electronics For You.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

This story is from the October 2024 edition of Electronics For You.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

MORE STORIES FROM ELECTRONICS FOR YOUView All
Wearable Automatic ASSISTANCE GLOVE
Electronics For You

Wearable Automatic ASSISTANCE GLOVE

This proposed prototype works by wearing the glove and either touching a specific finger with the thumb or pressing a special switch.

time-read
3 mins  |
October 2024
BLUETOOTH CONTROL Through Mobile
Electronics For You

BLUETOOTH CONTROL Through Mobile

Creating a Bluetooth-controlled device with an Arduino Uno and an HC-05 Bluetooth module enables control of lights or even relays to manage AC appliances wirelessly using an Android smartphone.

time-read
7 mins  |
October 2024
Raspberry-Pi Based WAVEFORM GENERATOR
Electronics For You

Raspberry-Pi Based WAVEFORM GENERATOR

A waveform generator is a commonly used test and measurement instrument in electronics laboratories.

time-read
5 mins  |
October 2024
World's Smallest Programable INDUSPHONE DESIGN
Electronics For You

World's Smallest Programable INDUSPHONE DESIGN

Smartphones have become a necessity in daily life.

time-read
4 mins  |
October 2024
AUTOMATIC WIPER CONTROL For Three/Four Wheelers
Electronics For You

AUTOMATIC WIPER CONTROL For Three/Four Wheelers

The integration of a 555 timer and L293D motor driver in an automatic wiper control device presents a practical and efficient solution for enhancing driver safety and convenience.

time-read
3 mins  |
October 2024
EMS Vs Components Manufacturing: EMPLOYMENT IN ELECTRONICS INDUSTRY OF INDIA
Electronics For You

EMS Vs Components Manufacturing: EMPLOYMENT IN ELECTRONICS INDUSTRY OF INDIA

A recent article in a leading business newspaper reported that industry executives, during a government meeting, had suggested that EMS firms create more employment than electronics component manufacturers-for every rupee invested. To verify this claim, a review was conducted with both component manufacturers and EMS firms, as well as several trade associations.

time-read
7 mins  |
October 2024
Why Did Rajguru Electronics, A Leading Distributor Of Components And Development Boards, Enter Manufacturing?
Electronics For You

Why Did Rajguru Electronics, A Leading Distributor Of Components And Development Boards, Enter Manufacturing?

After nearly three decades in distribution, Rajguru Electronics pivoted to manufacturing, setting up a unit for its ADIY subsidiary in Bengaluru. EFY's Yashasvini Razdan interviewed CEO Dileep Jain to explore the reasons behind the shift and the company's growth strategy.

time-read
2 mins  |
October 2024
"We Are Building FUTURE ENTREPRENEURS With Drone Assembly And Maintenance Training"
Electronics For You

"We Are Building FUTURE ENTREPRENEURS With Drone Assembly And Maintenance Training"

AVPL is creating village-level entrepreneurs and jobs through drone technology and agriculture training. In an interview with EFY's Nitisha, Co-founder and Chairman Preet Sandhu discloses how their 70 centres across 12 states offer offline courses in RPC and agricultural spraying.

time-read
6 mins  |
October 2024
"Becoming CLEAR"
Electronics For You

"Becoming CLEAR"

From a nonchalant teenager to authoring a book on Verilog at 25 and launching successful IPOs for startups on the US stock market, Rajeev Madhavan exemplifies how the right guidance can transform a life. This is the story of one of Silicon Valley's most influential venture capitalists, as narrated to Yashasvini Razdan.

time-read
10+ mins  |
October 2024
THINKRAW INDIA'S SOLAR SOLUTIONS FOR THE AGRICULTURAL SECTOR
Electronics For You

THINKRAW INDIA'S SOLAR SOLUTIONS FOR THE AGRICULTURAL SECTOR

ThinkRaw's blend of technology and tradition is revolutionising agriculture with solar-powered solutions that enhance efficiency and sustainability in farming and aquaculture.

time-read
3 mins  |
October 2024