So here what we are assigned do is that to measure something:add a sensor to a microcontroller board that we have designed and read it
I decided to build Satsha kit. The following is the schematic I made based on Daniele Ingrassia's work.
Components needed.
Then I milled the board
But when I checked the continuity I came to know that, the circuit was not grounded properly. But the schematic was ok to see. But one connection was actually not ok. So what I did was that, I gave an external connection as shown and now its ok..
About Atmega328
Some of the Features of ATMEGA 328 are
1.8-5.5V operating range
Up to 20MHz
32kB Flash program memory
1kB EEPROM
2kB Internal SRAM
Two 8-bit Timer/Counters
One 16-bit Timer/Counter
RTC with separate oscillator
6 PWM Channels
8 Channel 10-bit ADC
Serial USART
Master/Slave SPI interface
2-wire (I2C) interface
Watchdog timer
Analog comparator
Data retention: 20 years at 85C/ 100 years at 25C
23 IO lines
So now for the week assignment, I decided to connect a humidity and moisture sensor as input.
First I decided to test it with the Arduino board and then with the Satsha
Here in Arduino board, set a value of 50 and when the sensor is dipped in the water, the value should get increased and the LED should have to glow.
Next is to replace the arduino board with Satsha. Here what I did was that, to get output in the 13th pin. So I connected an LED on the 13th pin.