Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can any one tell me how can I know status of any pin of an ATmega16 microcontroller using Ubuntu?

When I connect ATmega16 to my system a file in /dev/ is created by name ttyUSB0. I am using an USB-to-serial converter in order to connect the ATmega16.

share|improve this question
You likely will need to write code on your ATMega16 that outputs pin status over the serial port. This (but not as presently written) might be more on-topic for EE.SE. – Renan May 1 '13 at 22:16
While connecting to a device from a unix machine is on-topic here, this may require more action on the µc than we can advise you on. This question would fit better on the proposed embedded systems site. It may or may not fit on Electrical Engineering. – Gilles May 1 '13 at 23:27

I think you will need to write a program for the ATmega which can report pin status over the serial port.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.