Hello, everyone!



Let's start this assignment!



In this assignment, I have:

  1. To add a sensor to a microcontroller board;
  2. To measure something.



Some times ago I developed a tiny PCB for line tracer robots which based on QRE1113GR. And I've attached it to MCU board.


QRE1113GR pcb.


Milled MCU PCB.


Closer final view.


FT232RL module, ATiny board with UART and Sensor Board.


Working code and data from MCU.


This is epic Arduino code for ATtiny 45 and software Serial:

  

#include 

SoftwareSerial mySerial(2, 1); // RX, TX

void setup()
{
  mySerial.begin(4800);
}

void loop() 
{ 
  mySerial.println(analogRead(A2));
}

  

And new stand with these sensors onboard.


Video of working.

To download the Altium project click here.


To download the .png click outline, outline filled, trace.


Thank you.