top of page
Andro

soldering and sensor testing

Updated: Nov 13, 2020



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


#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");



I also helped Minh with testing of the heartbeat sensor.




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






10 views0 comments

Recent Posts

See All

Wub Wub

Comments


bottom of page