Google_links

понедельник, 28 сентября 2015 г.

Nixie Clock IN-18 Digit Tubes KIT PCB & controller DIY (Arduino Uno compatable)

PCB Kit DIY for Nixie Clock for Large IN-18 Tube. GRA & AFCH Divergence Meter
IN-18 is hugest mass-produced digital nixie tubes.

Project has modular system, so you can build clock with 4 (hours:minutes) or 6(hours:minutes:seconds) tubes.

For clock with 4 tubes you need one MCU PCB and two Tube PCBs.
For clock with 6 tubes you need one MCU PCB and three Tube PCBs.

OR you can buy only MCU PCB and build your CUSTOM nixie clock (or even someting else!) on any kind (max 6) of tubes.
Tube PCBs also support IN-14 tubes.

Schematic and Bill of Materials is included.
In all options MCU (microcontroller unit) flashed with Arduino Uno Bootloader and sketch (Firmware).
Firmware on GitHub.

Lot containts only PCBs and flashed microcontroller, other parts and tubes NOT included.





 

 
Bill of materials
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
NumDesignatorValueQty.FootprintCommentDigi-Key   Part NumberLink
1U8ATmega328P-PU1DIP-28IC MCU 8BIT 32KB   FlashATMEGA328P-PU-NDhttp://www.digikey.com/product-search/en?keywords=ATmega328P-PU
2U1, U2, U3HV513WG3SOIC-24WIC Hight Voltage   RegisterHV513WG-GTR-NDhttp://www.digikey.com/product-detail/en/HV513WG-G/HV513WG-GTR-ND/4902434
3U4MAX17711SOIC-8DC-DC Hight   VoltageMAX1771CSA+TR-NDhttp://www.digikey.com/product-detail/en/MAX1771CSA%2BT/MAX1771CSA%2BTR-ND/1520601
4U5RT8258 or LMR12010
    (Need R20, D20)
1SOT23-6DC_DC 5V, if IC LMR12010X   need
    mounting R20, D20 on PCB
1028-1044-2-ND
    or
    LMR12010XMKX/NOPB-ND
http://www.digikey.com/product-detail/en/RT8258GJ6/1028-1044-2-ND/2546043
 
      http://www.digikey.com/product-detail/en/LMR12010XMKX%2FNOPB/LMR12010XMKX%2FNOPB-ND/3179247
5U6DS1307Z1SOIC-8RTCDS1307Z+T&RTR-NDhttp://www.digikey.com/product-detail/en/DS1307Z%2BT%26R/DS1307Z%2BT%26RTR-ND/1017945
6U7FT232RL1SSOP-28USB-UART768-1007-2-NDhttp://www.digikey.com/product-detail/en/FT232RL-REEL/768-1007-2-ND/1836385
7U9ULN2003D1SOIC16Driver497-2345-2-NDhttp://www.digikey.com/product-detail/en/ULN2003D1013TR/497-2345-2-ND/599284
8C1, C2, C3, C12, C16, C18, C20, C21, C22, C23, C26, C27100nF 50V120805Сeramic   capacitorCL21F104MBCNNND-NDhttp://www.digikey.com/product-detail/en/CL21F104MBCNNND/CL21F104MBCNNND-ND/3894620
9C4220uF 25V1SMD 10.8x10.8mm
    or Lead 8x13mm
Aluminum Capacitors
    Low ESR
493-2192-2-NDhttp://www.digikey.com/product-detail/en/UWT1E221MNL1GS/493-2192-2-ND/589933
10C5, C9, C11, C1410uF 16V 080540805Сeramic   capacitorCL21A106KOQNNNF-NDhttp://www.digikey.com/product-detail/en/CL21A106KOQNNNF/CL21A106KOQNNNF-ND/3894416
11C610uF 250V1SMD 10.8x10.8mm
    or Lead 10x16mm
Aluminum Capacitors
    Low ESR (4,7-10uF)
493-6705-2-ND
    or
    493-12846-3-ND
http://www.digikey.com/product-detail/en/ULR2E100MNL1GS/493-6705-2-ND/3664123"
 
      http://www.digikey.com/product-detail/en/UVR2E100MPD1TD/493-12846-3-ND/4329045
12C7, C28, C29, C30100nF 250V41206Сeramic   capacitor311-1976-2-NDhttp://www.digikey.com/product-detail/en/CC1206KKX7RYBB104/311-1976-2-ND/5195382
13C8, C1010nF 080520805Сeramic   capacitorCL21B103KBANNNL-NDhttp://www.digikey.com/product-detail/en/CL21B103KBANNNL/CL21B103KBANNNL-ND/3894454
14C131000uF 16V1SMD 10.8x10.8mm
    or Lead 10x16mm
Aluminum   CapacitorUCM1C102MNL1GS-ND
    Or
    B41821A4108M2-ND
http://www.digikey.com/product-detail/en/UCM1C102MNL1GS/UCM1C102MNL1GS-ND/4991837
 
      http://www.digikey.com/product-detail/en/B41821A4108M2/B41821A4108M2-ND/3543486
15C15, C17, C1910uF 10V3Size-A (CPM3216)Tantalum   Capacitor399-3684-2-NDhttp://www.digikey.com/product-detail/en/T491A106K010AT/399-3684-2-ND/818545
16C24, C2522pF 080520805Сeramic   capacitorCL21C220JBANNND-NDhttp://www.digikey.com/product-detail/en/CL21C220JBANNND/CL21C220JBANNND-ND/3894579
17D13LED Red1LED 1206Any LED 10-20 mA160-1187-2-NDhttp://www.digikey.com/product-detail/en/LTST-C230EKT/160-1187-2-ND/269234
18D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D15S1M or S2M12SMB
    or SMA
DiodeS2M-FDITR-NDhttp://www.digikey.com/product-detail/en/S2M-13-F/S2M-FDITR-ND/749980
19D14ES2F1SMBDiodeES2F-M3/5BT-NDhttp://www.digikey.com/product-detail/en/ES2F-M3%2F5BT/ES2F-M3%2F5BT-ND/4828630
20D19SS16 or SS261SMB or SMADiode SchottkySS26S-M3/5AT-NDhttp://www.digikey.com/product-detail/en/SS26S-M3%2F5AT/SS26S-M3%2F5AT-ND/4872643
21D18BZV55-C5V11SOD-80CDiode Zener568-4874-1-NDhttp://www.digikey.com/product-detail/en/BZV55-C5V1,115/568-4874-1-ND/2122203
22D16BZV55-C24V1SOD-80CDiode Zener568-12247-1-NDhttp://www.digikey.com/product-detail/en/BZV55-C24,135/568-12247-1-ND/5221703
23D12BZV55-C75V1SOD-80CDiode Zener568-6269-1-NDhttp://www.digikey.com/product-detail/en/BZV55-C75,115/568-6269-1-ND/2531556
24D17SMBJ220CA1SMBDiode TVSSMBJ220CALFCT-NDhttp://www.digikey.com/product-detail/en/SMBJ220CA/SMBJ220CALFCT-ND/825058
25D20DL41481SOD-80CDiode, only installed if
    the IC U5 LMR12010
DL4148-TPMSCT-NDhttp://www.digikey.com/product-detail/en/DL4148-TP/DL4148-TPMSCT-ND/773710
26L1220uH 1.5A
    CDRH127 Sumida
1Size 12x12mmPower Inductor308-2286-1-NDhttp://www.digikey.com/product-detail/en/CDRH127%2FLDNP-221MC/308-2286-1-ND/4356356
27L215uH 2A
    CDRH104R Sumida
1Size 10x10mmPower Inductor308-2278-1-NDhttp://www.digikey.com/product-detail/en/CDRH104RNP-150NC/308-2278-1-ND/4356348
28F1Fuse 2A 35V
    or Resisitor 1206 0 ohm
11206Fuse or Resistor   0 ohm1276-3514-2-NDhttp://www.digikey.com/product-detail/en/RC3216J000CS/1276-3514-2-ND/3903522
29J1PWR_DJK-02A1KLD-0202 or   EJ508ADC Power   2.1x5.5mmEJ508A-NDhttp://www.digikey.com/product-detail/en/EJ508A/EJ508A-ND/2439547
30J2MiniUSB1UX60-MB5 pinED90342CT-NDhttp://www.digikey.com/product-detail/en/896-43-005-00-100001/ED90342CT-ND/1914936
31KEYeX, Prog_ICSPPLD2-62PLD-6pich 2.54mmA108539-NDhttp://www.digikey.com/product-detail/en/146090-3/A108539-ND/4030873
32MAIN1, MAIN2PBD-122PBD-12pich 2.54mmSAM1212-03-NDhttp://www.digikey.com/product-detail/en/SSW-103-01-T-D/SAM1212-03-ND/1112253
33USBeXPLS-41PLS-4-3Option install if you
    need external USB
TSW-104-15-T-S-NDhttp://www.digikey.com/product-detail/en/TSW-104-15-T-S/TSW-104-15-T-S-ND/2685899
34SW1, SW2, SW3Button SWT-33SWT-3 or
    Any External Button
If you need an external button it is connected via
    the plug on the PCB
35B1Buzzer HCS0903G1SMD 8.5x8.5mm or
    Any Lead Passive Buzzer
If you need an external buzzer it is connected via
    the plug on the PCB
102-1198-2-NDhttp://www.digikey.com/product-detail/en/CSS-J4D20-SMT-TR/102-1198-2-ND/504819
36BT1Battery Holder CR12201CR1220BC501SM-NDhttp://www.digikey.com/product-detail/en/BC501SM/BC501SM-ND/2439260
37Q1IRF644 or IRF740S1D2PAK or TO-220Transistor Power MOSFETIRF644SPBF-ND
    or
    IRF740PBF-ND
http://www.digikey.com/product-detail/en/IRF644SPBF/IRF644SPBF-ND/812237
      http://www.digikey.com/product-detail/en/IRF740PBF/IRF740PBF-ND/812037
   
38R1, R2, R3, R4, R5, R6330 Ohm60805Resistor1276-5519-2-NDhttp://www.digikey.com/product-detail/en/RC2012J331CS/1276-5519-2-ND/3965826
39R1, R2, R3, R4, R5, R6, R7, R19, R29, R31, R32, R33, R34, R351k140805Resistor1276-5531-2-NDhttp://www.digikey.com/product-detail/en/RC2012J102CS/1276-5531-2-ND/3965838
40R8, R15, R26, R27, R283.6k10805Resistor1276-5300-2-NDhttp://www.digikey.com/product-detail/en/RC2012F362CS/1276-5300-2-ND/3965607
41R91.5 MOhm10805Resistor311-1.5MARTR-NDhttp://www.digikey.com/product-detail/en/RC0805JR-071M5L/311-1.5MARTR-ND/728231
42R101 Ohm11206Resistor1276-5843-2-NDhttp://www.digikey.com/product-detail/en/RC3216J1R0CS/1276-5843-2-ND/3966150
43R11300k10805ResistorRMCF0805JT300KTR-NDhttp://www.digikey.com/product-detail/en/RMCF0805JT300K/RMCF0805JT300KTR-ND/1711976
44R12, R16, R3010k30805ResistorRMCF0805JT10K0TR-NDhttp://www.digikey.com/product-detail/en/RMCF0805JT10K0/RMCF0805JT10K0TR-ND/1757762
45R1310K10805Resistor, only installed if
    the use IC U5 LMR12010
RMCF0805JT10K0TR-NDhttp://www.digikey.com/product-detail/en/RMCF0805JT10K0/RMCF0805JT10K0TR-ND/1757762
46R1710k13296W or 3266WAdjust Resistor3296W-1-103RLFTR-ND
    or
    3266W-103LF-ND
http://www.digikey.com/product-detail/en/3296W-1-103RLF/3296W-1-103RLFTR-ND/2535867
 
      http://www.digikey.com/product-detail/en/3296W-1-103RLF/3296W-1-103RLFTR-ND/2535867
47R18127k or 130k10805Resistor1276-5579-2-NDhttp://www.digikey.com/product-detail/en/RC2012J134CS/1276-5579-2-ND/3965886
48R20Option10805Resistor, not   mount
49R210.1 Ohm10805Resistor1276-6170-2-NDhttp://www.digikey.com/product-detail/en/RUT2012FR100CS/1276-6170-2-ND/3966477
50R2291k10805Resistor1276-5575-2-NDhttp://www.digikey.com/product-detail/en/RC2012J913CS/1276-5575-2-ND/3965882
51R2317.4k10805Resistor1276-5346-2-NDhttp://www.digikey.com/product-detail/en/RC2012F1742CS/1276-5346-2-ND/3965653
52R24, R250 Ohm20805Resistor, R25   not mount1276-5466-2-NDhttp://www.digikey.com/product-detail/en/RC2012J000CS/1276-5466-2-ND/3965773
53Z132,768 kHz1SMD 3.2x1.6mm
    or Lead 2x6m
Quartz300-8814-1-ND
 
    300-8341-1-ND
http://www.digikey.com/product-detail/en/CM315D32768DZFT/300-8814-1-ND/3641385
 
      http://www.digikey.com/product-detail/en/CMR200T32768DZBT/300-8341-1-ND/862986
54Z216Mhz1SMD 6.0x3.5mmQuartzXC1664TR-NDhttp://www.digikey.com/product-detail/en/ECS-160-18-23A-EN-TR/XC1664TR-ND/2213741
55Not markedDIP-28 Socket1For IC U8110-87-328-41-005101-NDhttp://www.digikey.com/product-detail/en/110-87-328-41-005101/110-87-328-41-005101-ND/4093562
56Not markedBattery CR1220   3V1For Battery   holder BT1P033-NDhttp://www.digikey.com/product-detail/en/CR1220/P033-ND/269740


SHIPPING  

  Items will be shipped from Ukraine 
via international registered airmail 
within 1 business days 
after payments received and verified. 
It takes about 10-34 days.
      Shipping cost is $8 for all countries. 
Combine shipping : Each additional item 

shipping for $1.

We combine multiple items to save on shipping, 


Shipping Time:


Europe 10-12 days

Germany 14-18 days
USA, Canada 12-15 days
Asia, South America 14-20 days
Australia, New Zeland 20-24 days
Africa, Central America 23-34 days

воскресенье, 14 июня 2015 г.

DTMF Generators HT9200 & DTMF Decoder MT8870(HT9170) + Control STM32F407

DTMF Generators(Transmitter) built on IC HT9200A/HT9200B Holtek. For example, below picture DTMF signal 697 Hz + 1209 Hz, it is code digit 1



Okay, now let's connect the output to the input of DTMF generator DTMF decoder. Control HT9200 DTMF generator I'll be using a microcontroller STM32F407, for this you can apply any controller Micrichip PIC16 / 18/24, Atmel, Arduino and Raspberry Pi. I used a 3 volt power supply, frequency SPI 125Khz, the output DTMF generator I placed an additional amplifier transistor for amplifying sound and I reduce the load on the generator output. The output of DTMF decoder I connected LEDs for to see that the code of the received signal.

And now look at the frequency domain FFT

And now look at the frequency domain FFT

Here is the standard connection scheme IC HT9200A 8pin package and HT9200B 14pin package Holtek


Okay, now let's connect the output to the input of DTMF generator DTMF decoder. Control HT9200 DTMF generator I'll be using a microcontroller STM32F407, for this you can apply any controller Micrichip PIC16 / 18/24, Atmel, Arduino and Raspberry Pi. I used a 3 volt power supply, frequency SPI 125Khz, the output DTMF generator I placed an additional amplifier transistor for amplifying sound and I reduce the load on the generator output. The output of DTMF decoder I connected LEDs for to see that the code of the received signal.

Here is the code table for this table, you can learn what you need to send a code to get the desired DTMF signal.


DTMF Decoder(Receiver) MT8870 or HT9170B/HT9170D Here is the standard connection scheme 18pin package

Here is the code table for this table




Okay, now let's connect the output to the input of DTMF generator DTMF decoder. Control HT9200 DTMF generator I'll be using a microcontroller STM32F407, for this you can apply any controller Micrichip PIC16 / 18/24, Atmel, Arduino and Raspberry Pi. I used a 3 volt power supply, frequency SPI 125Khz, the output DTMF generator I placed an additional amplifier transistor for amplifying sound and I reduce the load on the generator output. The output of DTMF decoder I connected LEDs for to see that the code of the received signal.




Code
#include <stm32f4xx.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stm32f4xx_conf.h>
//#include <stm32f4xx_rcc.h>
//#include <stm32f4xx_gpio.h>



// ***DTMF ***
#define PERIPH_PORT GPIOE

#define DTMF_SCK   GPIO_ODR_ODR_5
#define DTMF_CS    GPIO_ODR_ODR_3
#define DTMF_DATA  GPIO_ODR_ODR_1

#define PIN_ON(a, b) a -> BSRRL = b
#define PIN_OFF(a, b) a -> BSRRH = b

unsigned char ShiftBit;    
unsigned char i;

/*****************************************************************************
* Delay NOP
*****************************************************************************/
void Delay(volatile unsigned int Val)
{
  for( ; Val != 0; Val--)
    {
     __NOP();
    }
}


/**************************************************************
Code Digit  DTMF HT9200
 **************************************************************/
const unsigned short Look_DTMF[] =
{
    0x0A, // (0) 941 + 1209 Hz
    0x01, // (1)  697 + 1209 Hz
    0x02, // (2)  697 + 1336 Hz
    0x03, // (3)  697 + 1477 Hz
    0x04, // (4)  770 + 1209 Hz
    0x05, // (5)  770 + 1336 Hz
    0x06, // (6)  770 + 1477 Hz
    0x07, // (7) 852 + 1209 Hz
    0x08, // (8) 852 + 1336 Hz
    0x09, // (9) 852 + 1477 Hz

    0x0D, // (A) 697 + 1633 Hz
    0x0E, // (B) 770 + 1633 Hz
    0x0F, // (C) 852 + 1633 Hz
    0x00, // (D) 941 + 1633 Hz
    0x0B, // (*) 941 + 1366 Hz
    0x0C, // (#) 941 + 1477 Hz
 
    0x10, // (16) 697 Hz
    0x11, // (17) 770 HZ
    0x12, // (18) 852 HZ
    0x13, // (19) 941 HZ
    0x14, // (20) 1209 HZ
    0x15, // (21) 1336 HZ
    0x16, // (22) 1477 HZ
    0x17, // (23) 1633 HZ
    0x18  // (24) DTMF OFF
};

/*****************************************************************************
  *(SPI) 5bit HT9200
  *Freq125 kHZ
  *LSB
 *****************************************************************************/
void SPI_5(uint16_t BUFF)
{
BUFF = Look_DTMF[BUFF]; // find code DTMF
PIN_OFF(PERIPH_PORT, DTMF_CS); //  CS = 0
for (ShiftBit = 1; ShiftBit <= 5; ++ShiftBit)
  {      
   if ((BUFF & 0x01) == 0x01)
    {                          
     PIN_ON(PERIPH_PORT, DTMF_DATA); // DATA =1
     Delay(15);                   // delay 1 uS
     PIN_OFF(PERIPH_PORT, DTMF_SCK); // clear CLOCK=0
     Delay(60);                 // delay 4 uS
     PIN_ON(PERIPH_PORT, DTMF_SCK); // set CLOCK=1
     Delay(30);                   // delay 2 uS
    }
   else                      
    {                        
     PIN_OFF(PERIPH_PORT, DTMF_DATA);// clear DATA=0
     Delay(15);                   // delay 1 uS
     PIN_OFF(PERIPH_PORT, DTMF_SCK);// clear CLOCK=0
     Delay(60);                   // delay 4 uS
     PIN_ON(PERIPH_PORT, DTMF_SCK); //  set CLOCK=1
     Delay(30);                   // delay 2 uS
    }
  BUFF = BUFF >> 1; //
  }
PIN_ON(PERIPH_PORT, DTMF_SCK);   // CLOCK=1
Delay(15);                   // delay 1 uS                
PIN_OFF(PERIPH_PORT, DTMF_DATA); // DATA=0
Delay(2000000);
//PIN_ON(PERIPH_PORT, DTMF_CS);    // CS = 1
Delay(15);                     // delay 1 uS
}
//----------------------------------------------------------------------------

/*****************************************************************************
Основная программа
 *****************************************************************************/
int main()
{

SystemInit();  // 168MHz

RCC-> AHB1ENR |= RCC_AHB1ENR_GPIOEEN;
GPIOE->MODER |= GPIO_MODER_MODER1_0;  
GPIOE->OTYPER &= ~GPIO_OTYPER_OT_1;      // Push-Pull
GPIOE->PUPDR &= ~GPIO_PUPDR_PUPDR1;  
GPIOE->OSPEEDR |= GPIO_OSPEEDER_OSPEEDR1;

RCC-> AHB1ENR |= RCC_AHB1ENR_GPIOEEN;  
GPIOE->MODER |= GPIO_MODER_MODER3_0;
GPIOE->OTYPER &= ~GPIO_OTYPER_OT_3;      // Push-Pull
GPIOE->PUPDR &= ~GPIO_PUPDR_PUPDR3;    
GPIOE->OSPEEDR |= GPIO_OSPEEDER_OSPEEDR3;

RCC-> AHB1ENR |= RCC_AHB1ENR_GPIOEEN;
GPIOE->MODER |= GPIO_MODER_MODER5_0;  
GPIOE->OTYPER &= ~GPIO_OTYPER_OT_5;      // Push-Pull
GPIOE->PUPDR &= ~GPIO_PUPDR_PUPDR5;    
GPIOE->OSPEEDR |= GPIO_OSPEEDER_OSPEEDR5;


PIN_ON(PERIPH_PORT, DTMF_CS);    // CS = 1
PIN_ON(PERIPH_PORT, DTMF_SCK);// CLOCK=1


while(1)
  {

    if((GPIOA->IDR & GPIO_IDR_IDR_0)==1)
      {
      for(i=0; i<=24; i++)
        {
        SPI_5(i);
        }
      }
    //SPI_5(1); // Fixed DTMF code
  }
}