Apr 3: ezDHT11 - USB enabled humidity and temperature sensor node

It's about one year ago that I ordered the DHT11 low cost humidity and temperature sensor. Now I found some time to make something useful with it: A USB stick sensor node.
When plugged in, it provides a serial interface which outputs the data in a readable format once a second.
This project utilizes only an DHT11 1-wire sensor and the programmer ez430U, which comes with every ez430-Kit from Texas Instruments. The ez430U has a MSP430F1612 micro-controller on it accompanied with a TUSB3410 chip for serial to USB conversion.

The DHT11 uses a proprietary 1-wire protocol with a pulse width coding. I developed a full timer and interrupt based code to request and decode the sensor data from the DHT11 while the main controller is powered down. As the sensor should only be read-out once a second, the MSP430 sleeps also during this period.
I've uploaded the complete project with some extra functions to read and write the EEPROM for the USB controller to GitHub.
Have fun building your own.
Apr 1: Tip for Git No. 2 - Revert last commit
Let's start with a general advice: Never commit and/or push if you're half asleep!
If you don't follow this, like I did, you might find this useful:
If you have commited but not pushed your repository to a remote server yet, you can remove this last commit with
The --soft tells git to delete only the commit itself, but not your changes. There is also the --hard switch, which will delete also your changes. Use this with care!
If you have already pushed your commit, than the way to go is:
If you don't follow this, like I did, you might find this useful:
If you have commited but not pushed your repository to a remote server yet, you can remove this last commit with
git reset --soft HEAD^1
The --soft tells git to delete only the commit itself, but not your changes. There is also the --hard switch, which will delete also your changes. Use this with care!
If you have already pushed your commit, than the way to go is:
git revert HEADThis will generate a new commit, but without the changes from your sleepy-headed commit.
« previous page
(Page 1 of 1, totaling 2 entries)
next page »