I Love Creating Designing Prototyping

Week 13::Output Devices


Demonstrate work flows used in circuit board design and fabrication:
This week I made satshaKit and satshakit micro and LED board for my output device control.
satshakit_micro_internal
Fig1. satshakit micro internal

Start soldering with components:

  • ATMEGA 328P *1
  • LED:Blue *1
  • LED:Yellow *1
  • 10k resistor *1
  • 499 resistor *2
  • 1uf capacitor *1
  • 22pf capacitor *2
  • 100nF capacitor *2
  • Switch *1
  • After soldering, I was used hot glue gun to protect this board.

    satsha_kit
    Fig2. components of satsha kit
    satsha_kit2
    Fig3. satsha kit

    Following satshaKit tutorial, I am ready to program it.

    I am using my FabISP be a programmer to upload Arduino bootloader.

    withfabISP
    Fig4. satsha kit connection schemas with FabISP (Image courtesy of Github )

    Follow these steps to upload Arduino bootloader:

  • open Arduino IDE
  • select proper programmer (USBtinyISP)
  • select Arduino UNO as board
  • click on tools->Burn Bootloader
  • Then satsha kit board is totally like an Arduino board.

    I can use FTDI USB cable to upload and use my sketch without the need to use a programmer.

    withFTDI
    Fig5. satsha kit connection schemas with FTDI(Image courtesy of Github )

    A buzzer is an audio signalling device, which may be mechanical, electromechanical, or piezoelectric. So I want to use buzzer to make a signal to help people to know when is the perfect timing to set a hook in my final project.

    buzzer
    Fig6. Buzzer
    buzzer2
    Fig7. Buzzer

  • buzzer          Satsha Kit
  • GND            GND
  • Signal            D11
  • overview
    Fig8. overview
    Implement and interpret programming protocols:

    I made LED board be a output device for fishing float and rod base. Also I used hot glue gun to protect this board.

    So I can control LED color at the same time.

    In this week assignment when ADXL345(input) detect gravitational acceleration then LED will change color to RED and you can hear buzzer(output devices).

    LED2
    Fig9. LED board
    LED2
    Fig10. LED board
    LED3
    Fig11. LED board

    Used hot glue to protect board.

    LED
    Fig12. LED board

  • LED          Satsha Kit
  • GND            GND
  • R            5
  • G            6
  • B            7
  • RED
    Fig13. detect acceleration then change LED color

    Some explanation with code.

    int difference = z -temp;
    int differ_result = abs(difference_temp)-abs(difference);
    if(difference>50 || difference<-50 && differ_result >30 )

    I received Z-axis value from ADXL345 every second. So I used the difference between two value(this time and last time) larger threshold value then send a signal to rod base.

    Trial and error is a fundamental method of solving problems or finding threshold. Finally I used 50 to judge fish bite the bait. It is very specific but not very sensitive.

    arduino
    Fig14. code

    Video with ADXL345 Sensor(input devices) and LED and Buzzer Sensor(Output devices).

    As you can see the video. This is my final project code, so when the ADXL345 detects gravitational acceleration(I was used the difference with last time) then will send a signal and change LED color to RED.

    Source Files:

  • output_ADXL345.ino
  • LED.brd
  • LED.sch
  • satshakit_micro.sch
  • satshakit_micro.brd