Skip to main content

Arduino-CHDK camera triggering

I finally made some progress on my Arduino-CHDK camera trigger! When I first began this project, I wanted to use my Linkit One board since it already has GPS and SD card functionality (big win, because I would have less parts to buy...). I wrote a really simple script to set D13 high for 2s, then low for 2s, and set CHDK to do USB remote triggering.

  void setup() {
    pinMode(12, OUTPUT);
  }

  void loop() {
    digitalWrite(12, HIGH);
    delay(2000);
    digitalWrite(12, LOW);
    delay(2000);
  }


It didn't work. My multimeter only read 3.3V... wonder why.

I read the docs for the Linkit One and it says that the digital out pins only output 3.3V. I don't have a voltage regulator handy either (I'm not actually sure it would work either? It's been more than 10 yrs since I did anything useful with electronics). Good thing I have my Arduino Uno, because for sure it will output 5V.

I set up the script on the Uno and the trigger worked! So now, I guess I need to figure out if the voltage regulator will help me with the Linkit One. Ordering one of those now...

My desk

This worked, but not the Linkit One

Comments

Popular posts from this blog

The end of summer

It's been a wild year. Gains and losses. COVID-19 and the shelter in place. Lately, fires. Today was a very dark day, literally. For about half the daylight hours, there was so much ash in the air that it looked like it was close to sunset, but it was definitely not anywhere near as beautiful. Red sun following us everywhere. Bubonic plague found on fleas in Lake Tahoe. The list goes on and on. Everyone is tired. Exhausted. Burnt out. There is no respite, just a new normal that seems like an even steeper climb than before. Sleep gives way to another day with no refreshment. Yes, that's how things seem. But there have also been bright moments. Time spent with family, especially with the little one. Growing and nurturing plants, building things, trying new recipes, going to the store to shop for dinner, reading books, coloring with crayons... We grow closer together, weaving together a blanket of love and memories that we wrap ourselves in.

Resizing /root partition in Debian 7 (Wheezy)

I've usually been afraid to do anything drastic with the underlying filesystem because of how many times I've messed up the filesystem to begin with, and also because of how much time it takes to reinstall everything. This time, I decided that it was ok to go ahead and take a little risk here. My Linux machine is an old X61s, and its purpose is for me to experiment and learn more about Linux. I started getting a message that I was running low on space on root. Sure enough, the 300MB was all used up. I was hoping that GPartEd could help me with resizing the partitions. I couldn't see the partitions because it was all under an lvm. My plan was to shrink /opt slightly, then grow root. Thankfully, the formula isn't too bad, but there are a few steps. The first link I resorted to was this one: http://blog.shadypixel.com/how-to-shrink-an-lvm-volume-safely/. I didn't reboot to resize /opt; I just resized it after unmounting it. Unmount /opt:   # umount /dev/chrono...