Git Product home page Git Product logo

band_decoder_2's People

Contributors

ok1hra avatar sm2vsd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

band_decoder_2's Issues

undefined variables when EthModule is commented

Hi,
your FW contains issue when the EthModule definition is commented.
If the EthModule is commented, the variables "DetectedRemoreSW" and "RemoteSWLatencyANSW" are undefined in PttOff function because the definition of these variables is in "#if defined(EthModule)" condition

BCD input (yeasu of elecraft (inverted) to 8 output decimal

Thank you for the .ino file with the following configuration:

//=====[ Inputs ]=============================================================================================

#define INPUT_BCD // TTL BCD in A
int BcdInputFormat = 0; // if enable INPUT_BCD, set format 0 - YAESU, 1 ELECRAFT
//#define ICOM_ACC // voltage 0-8V on pin4 ACC(2) connector - need calibrate table
// #define INPUT_SERIAL // telnet ascii input - cvs format [band],[freq]\n
// #define ICOM_CIV // read frequency from CIV
// #define KENWOOD_PC // RS232 CAT
// #define FLEX_6000 // RS232 CAT
// #define YAESU_CAT // RS232 CAT YAESU CAT since 2015 ascii format
// #define YAESU_CAT_OLD // Old binary format RS232 CAT ** tested on FT-817 **
// #define YAESU_CAT_FT100 // RS232 CAT YAESU for FT100(D)
//#define MULTI_OUTPUT_BY_BCD // manual switch between four output on same band by BCD input
// - INPUT_BCD input must be disable
// - BCD output will be disble
// - it must always be select (grounded) one of BCD input
//=====[ Outputs ]============================================================================================
// If enable:
// - baudrate is same as selected Inputs
// - Inputs work only in 'sniff mode'
// - for operation must disable REQUEST
//
// #define ICOM_CIV_OUT // send frequency to CIV ** you must set TRX CIV_ADRESS **
// #define KENWOOD_PC_OUT // send frequency to RS232 CAT
// #define YAESU_CAT_OUT // send frequency to RS232 CAT ** for operation must disable REQUEST **
// #define SERIAL_echo // Feedback on serial line in same baudrate, CVS format <[band],[freq]>\n

I uploaded it and can confirm that on the LCD all is OK if I pull down the BCD inputs, the correct antenna is displayed on the LCD BUT !!! but the 8 outputs are not working properly

The 8 outputs SW1 - SW8 are not representing in decimal format the BCD input

First I was thinking I had a faulty 74hc 595, but if I use the following code

the 8 outputs SW1 - SW8 are working all fine

Any idea what might be wrong

int latchPin = 8; // Latch pin of 74HC595 is connected to Digital pin 5
int clockPin = 9; // Clock pin of 74HC595 is connected to Digital pin 6
int dataPin = 7; // Data pin of 74HC595 is connected to Digital pin 4

byte leds = 0; // Variable to hold the pattern of which LEDs are currently turned on or off

/*

  • setup() - this function runs once when you turn your Arduino on
  • We initialize the serial connection with the computer
    */
    void setup()
    {
    // Set all the pins of 74HC595 as OUTPUT
    pinMode(latchPin, OUTPUT);
    pinMode(dataPin, OUTPUT);
    pinMode(clockPin, OUTPUT);
    }

/*

  • loop() - this function runs over and over again
    */
    void loop()
    {
    leds = 0; // Initially turns all the LEDs off, by giving the variable 'leds' the value 0
    updateShiftRegister();
    delay(500);
    for (int i = 0; i < 8; i++) // Turn all the LEDs ON one by one.
    {
    bitSet(leds, i); // Set the bit that controls that LED in the variable 'leds'
    updateShiftRegister();
    delay(500);
    }
    }

/*

  • updateShiftRegister() - This function sets the latchPin to low, then calls the Arduino function 'shiftOut' to shift out contents of variable 'leds' in the shift register before putting the 'latchPin' high again.
    */
    void updateShiftRegister()
    {
    digitalWrite(latchPin, LOW);
    shiftOut(dataPin, clockPin, LSBFIRST, leds);
    digitalWrite(latchPin, HIGH);
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.