top of page

soldering and sensor testing

  • Andro
  • Oct 5, 2020
  • 1 min read

Updated: Nov 13, 2020


ree

We finally managed to get all the sensors and soldered most of them for testing purposes. We tested out both temperature sensors with the following simple code

ree

#include <OneWire.h> // DS18B20 op pin 2. OneWire ds(2);


void setup() {

// Start seriele poort.

Serial.begin(9600);

}

void loop() {

byte data[2];

ds.reset();

ds.write(0xCC);

ds.write(0x44);

delay(750);

ds.reset();

ds.write(0xCC);

ds.write(0xBE);

data[0] = ds.read();

data[1] = ds.read();

int Temp = (data[1]<<8)+data[0];

Temp = Temp>>4;

// schrijf temperatuur naar console.

Serial.print(" T = "); Serial.print(Temp); Serial.println("'C");



ree

I also helped Minh with testing of the heartbeat sensor.



ree

My next task was testing the RF link kit. I followed the following guide:




ree


Recent Posts

See All

Comments


bottom of page