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!

Sammy on the arduino

 

/* 
A control system based on the Arduino microcontroller platform

Copyright: Kaustubh D. Bhalerao. All rights reserved

System ...

Posted on February 24, 2012 0 Comments

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 ...

Posted on February 21, 2012 0 Comments

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. 

Posted on February 17, 2012 0 Comments

ABE446 Lectures

Now Online!

Posted on February 15, 2012 0 Comments

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.

  1. What is the big picture? What is the grand problem the article is claiming to address?
  2. Who cares about the problem and why is it important to tackle right now?
  3. What is the ...

Posted on February 13, 2012 0 Comments

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 ...

Posted on February 1, 2012 0 Comments

 
Loading