News PIC projects
- coolmirza143
- Tue Jun 14 2011, 05:24 pm
PIC Oscilloscope Clock
For those are not into electronics, you must know that an oscilloscope has basically only one timebase to move the spot horizontally from left to right with the same intensity. The vertical deviation is function to the input voltage. You understand immediately that you can't directly display 7 segment digits, because you can't move the spot from right to left.
By using X/Y mode, where the spot is controlled on two axes by two different voltages, it is possible to draw a picture (as in the examples mentioned above), but a fast digital to analog converter with two channels and at least 8 bits of resolution would be needed.
So we have to deal with a spot that always goes from left to right in the same period of time.
If we want to have a 7segment-like display, we have to draw :
vertical segments : easy to do, just change voltage up and down quickly a few times.
horizontal segments : easy to do, just set a voltage level and keep it as long as you need.
By using 2 PIC outputs and a basic R2R digital to analog converter, we can have up to four different voltage levels : 3 for the vertical segment, and another one where to put the spot when it is not in use to draw a segment.
But the problem is that a 7 segment digit may have up to 3 horizontal lines at a time (like 2, 3, 8, 9..) but we can draw only one during one spot deviation.
So we will have to cheat with retinal persistence and use multiple frames : since we can have only one vertical segment per period, three periods will be needed to draw a full 7 segment digit.
Supposing we want to display 12:34:56 on the screen :
During the first period, we will draw all vertical segments, and horizontal upper segments only :
As a game, I let you try to find out the spot trajectory.
Don't forget the rules :
you can't go backward
you can't clear the spot
But you can move so fast vertically that the eye can't see the spot moving.
The lowest line under the digits is not significant, it his the place where the spot is parked when not used to draw a segment.
Schematic Diagram:
Working Video
for more details see this LINK
For those are not into electronics, you must know that an oscilloscope has basically only one timebase to move the spot horizontally from left to right with the same intensity. The vertical deviation is function to the input voltage. You understand immediately that you can't directly display 7 segment digits, because you can't move the spot from right to left.
By using X/Y mode, where the spot is controlled on two axes by two different voltages, it is possible to draw a picture (as in the examples mentioned above), but a fast digital to analog converter with two channels and at least 8 bits of resolution would be needed.
So we have to deal with a spot that always goes from left to right in the same period of time.
If we want to have a 7segment-like display, we have to draw :
vertical segments : easy to do, just change voltage up and down quickly a few times.
horizontal segments : easy to do, just set a voltage level and keep it as long as you need.
By using 2 PIC outputs and a basic R2R digital to analog converter, we can have up to four different voltage levels : 3 for the vertical segment, and another one where to put the spot when it is not in use to draw a segment.
But the problem is that a 7 segment digit may have up to 3 horizontal lines at a time (like 2, 3, 8, 9..) but we can draw only one during one spot deviation.
So we will have to cheat with retinal persistence and use multiple frames : since we can have only one vertical segment per period, three periods will be needed to draw a full 7 segment digit.
Supposing we want to display 12:34:56 on the screen :
During the first period, we will draw all vertical segments, and horizontal upper segments only :
As a game, I let you try to find out the spot trajectory.
Don't forget the rules :
you can't go backward
you can't clear the spot
But you can move so fast vertically that the eye can't see the spot moving.
The lowest line under the digits is not significant, it his the place where the spot is parked when not used to draw a segment.
Schematic Diagram:
Attachment
Working Video
for more details see this LINK
Submit comment
Downloads
- Automatic Railway Gate Control by: Sharanjit Singh in: 8051 Projects
Tue Oct 15 2019, 12:47 pm - Yet Another DTMF Controlled Robot by: Er. Sharanjit Singh in: 8051 Projects
Tue May 07 2019, 02:45 pm - Simple 3 Digit Temperature Meter by: Rakesh Suthar in: PIC Projects
Sat Jul 05 2014, 11:45 am - Electronic Voting machine with Managed Control Unit (Project Report Included) by: Shivani, Geetika Gupta, Vibhore Aggarwal, Megha Singh in: 8051 Projects
Sat May 17 2014, 07:46 pm - LED Scrolling message Display using 8051 by: Pratik Suthar in: 8051 Projects
Thu May 08 2014, 04:28 pm
Comments
- Pure Sine Wave Inverter Using Atmel 89S2051 by: Anthonyvab
Wed Apr 17 2024, 08:51 am - Pure Sine Wave Inverter Using Atmel 89S2051 by: Jerrydauck
Fri Mar 01 2024, 08:51 am - Pure Sine Wave Inverter Using Atmel 89S2051 by: DennisVatry
Thu Feb 22 2024, 10:04 pm - Pure Sine Wave Inverter Using Atmel 89S2051 by: DonaldPaids
Thu Feb 22 2024, 03:45 pm - Pure Sine Wave Inverter Using Atmel 89S2051 by: Victornwh
Mon Feb 19 2024, 12:01 pm
FrankTrelm
Tue May 14 2024, 10:39 am
BillyTum
Tue May 14 2024, 09:08 am
Loganbag
Tue May 14 2024, 04:05 am
MichaelMog
Tue May 14 2024, 03:58 am
ThomasGaxaW
Mon May 13 2024, 05:33 pm
RobertInfup
Mon May 13 2024, 04:28 pm
Joshuatem
Mon May 13 2024, 08:30 am
RaymondPex
Mon May 13 2024, 03:24 am
Trending Topics
FM transmitter module Embedded Software Development with C forum posts mcu detect tv channel frequency cscb rumers Philips TV Remote codes heartbeat sensor using infrared LED electronics voting machine project sync signals Switches and Keypads PC BASED DATA LOGGER Microcontroller architecture heart beat sensor 8051 reset circuit digital signatures ebooks proteus debug interface with Keil balancing robots