Author Topic: need some help with micro controller connections  (Read 386 times)

0 Members and 1 Guest are viewing this topic.

Offline maitkaaTopic starter

  • Jr. Member
  • **
  • Posts: 9
  • Helpful? 0
need some help with micro controller connections
« on: October 04, 2012, 06:19:41 AM »
Hello

I need some help with micro controller module.I would like do know how to make a program that will write on screen if i connect 1 adc so it will show on screen that there is a connection .
Here is the site of what i am using : http://home.roboticlab.eu/en/hardware/homelab/controller/atmega128?s=translation_true

i must find out how to make digital or analog connections or something like that

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 977
  • Helpful? 46
  • N.I.R.
Re: need some help with micro controller connections
« Reply #1 on: October 04, 2012, 06:57:38 AM »
You can send any data from microcontroller to PC and vice versa using USART feature of microcontroller in conjunction with level shifter and serial port/bus of a computer.

To actually detect that something is hooked up to ADC pin using only ADC pin might be difficult if connected device outputs 0V at certain stages. If output device always output anything above 0V, then detection can be based on that fact, hence:
Code: [Select]
if (detected_voltage > 0V)
{
      something_is_connected_to_ADC_pin = true;
}

else
{
      something_is_connected_to_ADC_pin = false;
}
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

 

Related Topics

  Subject / Started by Replies Last post
7 Replies
2082 Views
Last post December 06, 2007, 09:37:05 AM
by blueroomelectronics
10 Replies
1430 Views
Last post May 30, 2009, 08:10:17 PM
by galannthegreat
6 Replies
1639 Views
Last post September 16, 2009, 03:23:12 PM
by ArcMan
10 Replies
954 Views
Last post August 22, 2012, 08:28:44 PM
by cgrenier


Get Your Ad Here

data_list