Making a simple Arduino temperature sensor

Recently I decided to play more with an Arduino starter kit that I bought from Amazon (Arduino Uno R3 Board Starter Kit) and make a simple temperature sensor from it. Now when it comes to using the Arduino kits, I had no idea where to start. After some research, I made one reading the temperature in C, F and also the voltage.

Heres a simple guide:

  1. Connect the TMP36/2N3904 temperature sensor to your arduino by connecting the sensor’s VCC pin to the Arduino’s 5v port.
  2. Then the ground pin on the sensor to the GND port on the Arduino
  3. Finally connect the temperature sensor’s VOUT pin to the Arduino’s A0 port.


And thats it on the hardware side, now for the software.

//TMP36 Pin Variables
int sensorPin = 0; //the analog pin the TMP36’s Vout (sense) pin is connected to
//the resolution is 10 mV / degree centigrade with a
//500 mV offset to allow for negative temperatures

* setup() – this function runs once when you turn your Arduino on
* We initialize the serial connection with the computer

void setup()
Serial.begin(9600); //Start the serial connection with the computer
//to view the result open the serial monitor
void loop() {
// {
//getting the voltage reading from the temperature sensor
int reading = analogRead(sensorPin);

// converting that reading to voltage, for 3.3v arduino use 3.3
float voltage = reading * 5.0;
voltage /= 1024.0;

// print out the voltage
Serial.print(voltage); Serial.println(” volts”);

// now print out the temperature
float temperatureC = (voltage – 0.5) * 100 ; //converting from 10 mv per degree wit 500 mV offset
//to degrees ((voltage – 500mV) times 100)
Serial.print(temperatureC); Serial.println(” degrees C”);

// now convert to Fahrenheit
float temperatureF = (temperatureC * 9.0 / 5.0) + 32.0;
Serial.print(temperatureF); Serial.println(” degrees F”);

delay(250); //waiting 60 seconds

Then hit verify, then press upload. Open up the serial monitor and you should start getting something like this….

If you do, then well done, you have a basic temperature sensor.

You can copy and paste these results into a text document and save the file as a CSV file to import into Excel to make graphs from it if you wish.


Please follow and like us:

How strong is Steve from Minecraft?

In Minecraft you play as the chacter Steve (well unless you reskin him), and out of curiosity I decided to try and work out how strong he really is. 

So in the game you have 36 slots and in each slot you can carry 64 items. So the heaviest real world item I could find was gold. A cubic meter of this would weigh the best part of 19300kg and each slot can carry 64 of these and you have 36 slots, this of which would total out at around 44.467 million Kgs of gold. 

So in the game each block is made of 9 gold ignets, so based on that each ignet would weigh 2144kg. 

Now that’s a lot of gold to be carrying around on him. 

But yes I am forgetting that you can also make gold armour in the game. Right so a full set of gold armour needs (from memory) 24 ingets presuming there’s nothing lost during making it. This would weigh in at 51466kg… Now that’s weighty. 

Including the back pocket full of gold and the armour, this would be 44.519 million Kgs of gold… 

So cash for gold anyone? 

Please follow and like us:

Unpleased Fiancée

So yesterday after much thought I decided to go to my local camera shop and pick up the Sigma 30mm 2.8 for use with my Olympus OMD M10 Mk2. I mainly wanted this lens as it was a fast prime, perfect for a few projects I really want to try and do (involving taking portraits) so this would fit perfectly and was also quite cheap (£120).

Much to my disappoint, the shop didn’t have that lens in stock, so as a sad fox, I resigned and thought about going online for it, when the assistant said that they had the new replacement to it, the 30mm 1.4, I agreed to have a look, and fell in love. It was light (about 140 grams), fast at focusing and was a 1.4 so it was perfect for what I needed it for. With the added bonus of it being from Sigmas Art Line of lenses. So after some debate on the price, it only set me back by about £180,  a right steal.

Heres a few photos I took to test it out at home, much to the disappointment and displeased Fiancée.
P7070004 P7070009Lens: Sigma 30mm F1.4 DC DN (Amazon link)

Camera: Olympus OMD M10 Mk2 (Amazon Link)

Please follow and like us: