base_station
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
base_station [2013/10/04 16:45] – breaker27 | base_station [2014/03/02 17:11] (current) – [Needed Parts and PCB] breaker27 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Building up a Base Station ====== | ||
+ | |||
===== Needed Parts and PCB ===== | ===== Needed Parts and PCB ===== | ||
- | You need a **PCB**. You may use the layout from [[https:// | + | You need a **PCB**. You may use the layout from [[https:// |
The base station is designed to run 24/7 on 5V and to be connected to a PC, so you may prefer a stabilized 5V power supply, and not running on batteries. Any USB power supply will do well, and many mobile phone chargers are working at 5V. | The base station is designed to run 24/7 on 5V and to be connected to a PC, so you may prefer a stabilized 5V power supply, and not running on batteries. Any USB power supply will do well, and many mobile phone chargers are working at 5V. | ||
- | ^ Amount | + | ==== Partlist (in buildup order) ==== |
- | | 1 | PCB Generic Maxi Speed 1 | | {{ wiki: | + | |
- | | 1 | Diode 1N4148 | + | |
- | | 3 | Zener Diode 3,3V | D2, D3, D4 | x | | + | |
- | | 1 | Resistor 1k5 brown-green-red | + | |
- | | 3 | Resistor 1k brown-black-red | + | |
- | | 1 | Resistor 1M brown-black-green | + | |
- | | 1 | Quarz / Crystal 20 MHz | Q1 | x | | + | |
- | | 2 | Capacitor 22pF | C1, C2 | x | | + | |
- | | 2 | Capacitor 10uF | C5, C6 | x | | + | |
- | | 1 | Button/ | + | |
- | | 1 | IC holder | + | |
- | | 1 | IC ATMega328 | + | |
- | | 1 | Voltage regulator LP2950Z TO92 | IC3 | x | | + | |
- | | 1 | LED 2mA | LED1 | x | | + | |
- | | 1 | Connector AVR ISP 6pin | JP1 | x | | + | |
- | | 1 | Transceiver PCB RFM12B | + | |
- | some jumpers and connectors for power, serial, ISP and maybe extra pins, at your opinion. | + | ^ Amount |
+ | | 1 | PCB Generic Maxi Speed 1 | | {{ parts: | ||
+ | | 1 | Diode 1N4148 | ||
+ | | 3 | Zener Diode 3,3V | D2, D3, D4 | {{ parts: | ||
+ | | 1 | Resistor 1k5 brown-green-red | ||
+ | | 3 | Resistor 1k brown-black-red | ||
+ | | 1 | Resistor 1M brown-black-green | ||
+ | | 1 | Quarz / Crystal 20 MHz | Q1 | ||
+ | | 2 | Capacitor 22pF | C1, C2 | ||
+ | | 1 | Button/ | ||
+ | | 1 | IC holder | ||
+ | | 1 | Voltage regulator LP2950Z | ||
+ | | 1 | LED 2mA | LED1 | ||
+ | | 1 | Connector AVR ISP 6pin | JP1 | {{ parts: | ||
+ | | 2 | Capacitor 10µF | C5, C6 | ||
+ | | 1 | IC ATMega328 | ||
+ | | 1 | Transceiver PCB RFM12B | ||
+ | | 1 | Antenna (82,2mm wire) | JP2 | {{ parts: | ||
+ | some jumpers and connectors for power, serial and maybe extra pins, at your opinion. | ||
Optional: | Optional: | ||
- | | + | *resistors 150k & 330k, for measuring the supply voltage. Obsolete for a base station, but you can connect them if you built something else with the Generix Maxi Speed PCB that runs on batteries. |
- | | + | ===== Buildup of PCB ===== |
- | alternatives: RFM12 (without the " | + | As always: start from flat to high. Go through |
- | ===== Preparation of parts ===== | + | |
- | describe it... | + | For some parts, you have to consider something special: |
- | ===== Buildup | + | * **Diodes:** Look at the marked ring. This has to match the line / the top of the arrow on the PCB. |
- | As always: start from flat to high. Solder | + | * **IC holder:** Look at the notch and place it in the right direction. |
- | Don' | + | * **Voltage regulator: |
+ | * **LED:** Solder it to a wire if you want to place the PCB in a housing later. Read the instructions on how to [[LED_soldering|solder the LED to a cable]]. The longer wire of the LED is +. It goes into the hole more in the middle of the PCB. | ||
+ | * **ISP Connector: | ||
+ | * **10 µF Capacitor: | ||
+ | * **USB-to-serial connector: | ||
+ | * **ATMega:** Before inserting it, you may want to check the voltage levels | ||
+ | * **RFM12B:** You should also check the voltages | ||
+ | * **Antenna: | ||
+ | |||
+ | {{https:// | ||
- | {{ https:// | ||
//(Image directly loaded from external GitHub source. If it doesn' | //(Image directly loaded from external GitHub source. If it doesn' | ||
- | |||
- | Connect the black test wire to the ground, f.ex. at the first pin of the serial port. The third pin should read approx. 5V, and the pins 6 & 21 of the µC socket should be 5V, too. At the place for the radio module the pad beside the antenna and at the opposite side the third pad should read about 3.3 V. | ||
- | |||
- | If you have different voltages: don't panic, nothing is broken, nothing is fried. Search your error. | ||
- | |||
- | If you get the correct voltages, solder the radio module in place. Remember to put a small isolation, maybe a small plastic part, between the base station PCB and the radio module, because they both are unisolated. Push the µC into the socket. | ||
===== Flashing the firmware ===== | ===== Flashing the firmware ===== | ||
- | If you have a new ATMega where nothing is flashed onto, download a prebuilt binary package or compile | + | If you have a new ATMega where nothing is flashed onto, [[http:// |
After flashing and switching the power on, your base station should start blinking the LED once a second. | After flashing and switching the power on, your base station should start blinking the LED once a second. | ||
- | |||
===== Integrate it into a housing ===== | ===== Integrate it into a housing ===== | ||
- | describe | + | This is an example how to integrate the electronics into a nice housing. |
+ | Here a black plastic housing was used ([[http:// | ||
+ | The left figure shows the planned arrangement of parts: The smarthomatic base-station pcb, the FTDI FT232RL based serial USB adapter and the LEDs. | ||
+ | The housing contains 4 pins inside for screw mounting, but it was on the wrong place, so it was removed with a drill and a chisel. On the side wall the marks for the USB-port and the LEDs are visible. | ||
+ | The third figure shows the final assembly, the second LED was omitted. | ||
+ | All parts were fixed with hot glue. | ||
+ | |||
+ | ^{{: | ||
+ | |::: |
base_station.txt · Last modified: 2014/03/02 17:11 by breaker27