Author Topic: need some help with micro controller connections  (Read 1665 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 »

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 :

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

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • 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;

      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


Get Your Ad Here