Research and Teaching Blog
6 Posts in February Archive
Digital IO with interrupts
Here is an improved version of the code. Note that the digital input pin is actually never even read! It is only used to detect the state changes (Here falling edges).
It is simple enough (and robust enough). As you can see my two-yr old can operate the circuit. It is unbelievable he has more fun with this switch than with an iPad!

/* A control system based on the Arduino microcontroller platform Copyright: Kaustubh D. Bhalerao. All rights reserved System ...
Demo code for the arduino
Here's the ugly version first
int b = 0; void setup() { pinMode(2, INPUT); digitalWrite(2, HIGH); pinMode(13, OUTPUT); pinMode(5, OUTPUT); } void loop() { b = digitalRead(2); if(b) { digitalWrite(13, 1); digitalWrite(5, 0);} else {digitalWrite(13, 0); digitalWrite(5, 0);}}
This is the nicer looking (and therefore more correct) version. You should be able to cut and paste the following straight into your arduino sketch.
/* A control system based on the Arduino microcontroller platform Copyright: Kaustubh D ...
Flagellar clutch
For next Wednesday, let us discuss this article. In addition to the tips on reading journal articles, think about what additional experiments you could do to develop information that an engineer might need to control such motors. Also look for any additional mechanisms (in other organisms perhaps?) that might provide similar or different functionality. Compare and contrast different molecular motors.
ABE446 Lectures
DNA Nanotechnology discussion
For the coming Wednesday, please read this article on DNA nanotechnology. Please keep the following questions in mind when reading the article, as we will discuss them in class. Please bring your talking points to class on a sheet of paper - I will collect and assess them.
- What is the big picture? What is the grand problem the article is claiming to address?
- Who cares about the problem and why is it important to tackle right now?
- What is the ...
Crowdsourced quantum computing
By now you've probably been hard at work trying to figure out what quantum computing is, and have been eager to share your findings with everyone.
After class on Monday I thought a little bit more about the nature of the 'experiment' we started, and figured that it was probably a better idea if everyone had a bit more time to work on the problem. So rather than have you bring your contribution to class on this Wednesday (today ...
