Posts

Showing posts with the label VB-Audio

CC1120 - transmit DTMF tones

Image
13.9.2020 CC1120 - transmit DTMF tones Arduino Uno + breadboard + jumper wires + CC1120 https://www.mikroe.com/ccrf-3-click SDR# + VB-Audio virtual audio cable + Multimon-ng Arduino tone library: https://github.com/bhagman/Tone ... works quite ok with just jumper wires connecting digital pin 4 & 5 to CC1120 GDO0 pin, DTMF tone 6 not working CC1120 Transparent serial mode, FSK, SERIAL_RX on IOCFG0, 437.500 MHz, TX power 3 dBm.   #include <SPI.h> #include <Tone.h> #include "cc1120.h" #define PRINT_INFO    1 #define DTMF_DURATION 200 #define DTMF_ARR_LEN  10 #define portOfPin(P)\   (((P)>=0&&(P)<8)?&PORTD:(((P)>7&&(P)<14)?&PORTB:&PORTC)) #define ddrOfPin(P)\   (((P)>=0&&(P)<8)?&DDRD:(((P)>7&&(P)<14)?&DDRB:&DDRC)) #define pinOfPin(P)\   (((P)>=0&&(P)<8)?&PIND:(((P)>7&&(P)<14)?&PINB:&PINC)) #define pinIndex(P)((uint8_t...

SmartRF Studio & CC1101/Arduino - transmit DTMF tones

Image
22.9.2020 SmartRF Studio & CC1101/Arduino - transmit DTMF tones SmartRF Studio 7, SDR#, Multimon-ng CC1101 + SmartRF04eb + Arduino Uno Works quite ok, sometimes same tone detected twice by Multimon-ng ... probably needs custom delays for each tone. CC1101 asynchronous serial TX mode. GDO0 pin configured as RX_HARD_DATA[0] and GDO2 pin configured as RX_HARD_DATA[1]. SDR#: NFM, 9 kHz filter bandwidth, squelch off, filter audio off. Arduino Uno code: CC1101 GDO0 pin connected to Arduino Uno digital pin 2 CC1101 GDO2 pin connected to Arduino Uno digital pin 3 Arduino tone library: https://github.com/bhagman/Tone #include <Tone.h> #define GDO0_PIN      2 #define GDO2_PIN      3 #define DTMF_DURATION 56 #define DTMF_ARR_LEN  10 Tone f1; Tone f2; uint16_t dtmf_f1[DTMF_ARR_LEN] = {1336, 1209, 1336, 1477, 1209, 1336, 1477, 1209, 1336, 1477}; uint16_t dtmf_f2[DTMF_ARR_LEN] = {941, 697, 697, 697, 770, 770, 770, 852, 852, 852}; void s...