Forum Discussion
Altera_Forum
Honored Contributor
8 years agoGPIO Pin Problems
Hi all, I am attempting to interface an ultrasonic range sensor with the DE2 board through the GPIO expansion header. The device has 4 connections, 5v vcc, ground, trigger, and echo. The 5v and gr...
Altera_Forum
Honored Contributor
8 years agoOne last update for the night. Using bidirectional ports assigned to the GPIO pins with the rest of the unused pins being assigned bidirectional and grounded, I was finally able to get both input and output together without the programming failure. For some reason though, the input is still acting strangely. It's as though a fictitious source is there supplying constant voltage to the input pin and it only detects when it's shorted out. That's not going to work for the project because I need to be able to detect an active high signal. I'm not sure why it's behaving this way, hopefully someone will be able to enlightening me or tell me if the way I'm approaching this is way off base. Thank for all the help received tonight.