Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 35
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
No birthdays today

Next birthdays
05/07 a.gutzeit (64)
05/08 wpk5008 (35)
05/09 Alfons (37)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: General Science and Electronics
« Previous topic | Next topic »   

Trying to build a cheap and simple oscilloscope. How to program an AVR?

Move Thread LAN_403
Wolfram
Sat Sept 05 2009, 05:27PM
Wolfram Registered Member #33 Joined: Sat Feb 04 2006, 01:31PM
Location: Norway
Posts: 971
No. You can't program a PIC over RS232 unless you've already programmed a bootloader into the PIC.


Anders M.
Back to top
Bjørn
Sat Sept 05 2009, 05:46PM
Bjørn Registered Member #27 Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
You should consider getting an ARM module for about $25-$30. They have built in bootloaders that work directly with RS-232. Avi has made a fairly advanced oscilloscope application that you probably can get a copy of. It is easy to add frequency counters and frequency generators with just a few lines of code.

A bit more expensive but much faster sample rates and 100 times more powerful.

The application runs on this module: Link2 There are other slightly cheaper modules with better specifications that will work with some modifications to the program.

1252172792 27 FT75259 Osc
Back to top
cavemen
Sat Sept 05 2009, 07:04PM
cavemen Registered Member #2008 Joined: Tue Mar 03 2009, 05:11AM
Location: USA, Frederick, MD
Posts: 118
So you are telling me about a ready made oscilloscope
analog to digital converter module?


Maybe I will buy it. I don't want to risk building something that won't work and that is somethng i don't understand.


I like the idea of buying this device, Bjorn, but how can I turn this circuit into an oscilloscope that connects to my computer and to the circuit board being tested?

Does it come as a ready-made circuit?

i don't know much about digital electronics.


[Edit: Triple post]
Back to top
Bjørn
Sat Sept 05 2009, 07:57PM
Bjørn Registered Member #27 Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
Everything is ready made with 3.3 V A/D input, you need an external voltage divider for higher voltages and some sort of offset circuit for negative voltages.

You need to ask Avi about getting a copy of the software for the microcontroller and the PC. Then you have to upload the firmware to the module over RS-232, with some patience this is something anyone can do with a little help from the forum or chatroom.

Here is an example of what I made with that exact module, grabbing a video signal at 2 MHz sample rate. Low resolution and noisy but a recognisable picture. Only skill and imagination is the limit with fast 32 bit microcontrollers.


1252180627 27 FT75259 Workingsync
Back to top
cavemen
Sun Sept 06 2009, 12:41AM
cavemen Registered Member #2008 Joined: Tue Mar 03 2009, 05:11AM
Location: USA, Frederick, MD
Posts: 118
So if i buy this circuit, i'll get myself a 4 channel ADC and DAC with a lot of other functions?

What socket is it going to input information into my computer through?
Parralel port, serial port, usb?
As I understand, it uses serial port.

Does it come with a manual describing the purpose of every single hole on the edge of the circuit board?

Does microcontroller on this circuit come pre-programmed?
Do I have to program it with a programmer?
Or I can just upload the code into the chip by the means of the circuit itself?
Back to top
Bjørn
Sun Sept 06 2009, 01:32AM
Bjørn Registered Member #27 Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
Yes, the module has 4 A/D channels and a lot of different functions. Each pin has up to 4 different functions that can be configured by the code running on the chip.

The 4 pin connector on the right side of the module connects to a serial cable that comes with it. It also comes with a CD that contains the schematics and datasheet that explains everything. The datasheet is 285 dense pages that is very hard to understand if you are not used to working with microcontrollers.

The chip is empty except for the bootloader that can load code over the serial link. The only thing you need to upload code is a serial port and a program called Flash Magic Link2
Back to top
cavemen
Thu Sept 10 2009, 03:30AM
cavemen Registered Member #2008 Joined: Tue Mar 03 2009, 05:11AM
Location: USA, Frederick, MD
Posts: 118
Maybe I will buy it.

As usual, more complex it gets, better it gets.
Back to top

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.