Sistemas Embebidos
03 de Septiembre de 2015, 12:06:30 *
Bienvenido(a), Visitante. Favor de ingresar o registrarse.

Ingresar con nombre de usuario, contraseña y duración de la sesión
   Inicio   Ayuda Buscar Calendario Descargas Tags Ingresar Registrarse  
Páginas: [1]
Autor Tema: Mini USB Oscilloscope  (Leído 7894 veces)
Ser Supremo
Nivel 256 bits - Maestro
Mensajes: 2547

Ver Perfil WWW
« en: 07 de Marzo de 2010, 05:44:25 »

This submini USB scope is based on a Atmel Tiny45 cpu and cost less than 5€ with a homemade pcb

It has 2 analog inputs and can supply 5V ont the 4 pins header on the right. One of the inputs can be scaled down with the trim pot.
The firmware in the Tiny45 is written in C and compiled with Winavr and usb source code from obdev. As you can see, there is no crystal , the software sync the internal 16.5Mhz pll clock with the USB clock.
The cost with a home made pcb is around 5€.
Of course, do not expect 1Gs/s HID does not alow that data rate ! But it is using a 10bits AD.

It has been designed to plug into a project breadboard so there is no need for a power supply.
On this picture it is used to test a high precision light sensor.

It does connect to a PC with usb in HID mode, without the need to install any specific driver. Data are diplayed on the PC with .NET C# software. This is an exemple of my display programOf course you can write your own code to capture or display the datas

Here is the schematic, so simple !

Bill of material

1 Led (any)
1 R for led, from 220 to 470 ohm, smaller is brighter
2 R 68 ohm on USB D+ & D-lines
1 Pull up R 1.5K for USB device detection
2 Zener 3.6V for right USB signal levels
2 Bypass caps 100nf & 47uf
2 filter caps on analog inputs ( from 10nf to 470nf or nothing, up to you)
1 or 2 trimpots on analog inputs to scale your voltage to AD range (1.2V or 2.5V by software )
1 USB socket (A,B, mini, you chose)
1 Atmel Tiny45-20.

eagle files:

Here is the C source for the firmware including usb lib and HID descriptors,
and for those who do not want to mess with compilers, the .HEX file ready to flash main.hex.
Do not forget to set the fuses for internal PLL clock

And last for today, the Windows display software UsbADC.zpi. There is no setup with it, so copy in a folder with the dll and try. It is .NET so you need the framework.

UPDATE: for all who requested the C# code for this app, here is the link done with Visual Studio 2005
En línea

El que no sabe lo que busca no entiende lo que encuentra
Páginas: [1]
Ir a:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2006, Simple Machines
XHTML 1.0 válido! CSS válido!
Página creada en 3.033 segundos con 28 queries.