Ray Burnette
Published © MIT

The QBF Signal Generator

The Quick Brown Fox, QBF, generator provides a 9600 (4800) BAUD serial TTL signal for testing a variety of serial electronic devices.

Full instructions provided3,190
The QBF Signal Generator

Things used in this project

Hardware components

Serpac Enclosure
×1
GLCD Display
×1
Pro Micro
×1

Story

Read more

Code

using_an_uno_.

Plain text
using_an_uno_.
// Pinouts for ILI9340 2.2" 240x320 TFT LCD SPI interface (SD card not attached)
//      Pro Mini    LCD Display    UNO pins
#define _sclk 15    // J2 pin 7        13
#define _miso 14    //    pin 9        12
#define _mosi 16    //    pin 6        11
#define _cs   10    //    pin 3        10
#define _dc    9    //    pin 5         9
#define _rst   8    //    pin 4         8

special_mode_pins.

Plain text
special_mode_pins.
Two pins on the microcontroller control the mode and the BAUD rate.

if (! digitalRead(4) ) lFoxActive = true;

  if( digitalRead(6) ) {
    Serial1.begin(9600) ;  // 1st serial port because 'Serial' translates to USB comm:
  } else {
    Serial1.begin(4800) ;  // 1st serial port because 'Serial' translates to USB comm:
  }

source_code_highlights___the_fox_code.

Plain text
source_code_highlights___the_fox_code.
String cFoxString = "The quick brown fox jumped over the lazy dog's back.\0" ;
<......>

    if( lFoxActive )
     {
       Serial1 << cFoxString.charAt( cPostn ) ;
       ++ cPostn ;
       if( cPostn > cFoxString.length() )
       {
         cPostn = 0 ;
         Serial1 << "\r" ;
       }
    }

Credits

Ray Burnette

Ray Burnette

57 projects • 401 followers
IT architect - retired AT&T... USAF-Secure Comm , Burroughs, Clemson U. School of EE Research, Southern Bell, BellSouth, SofKinetics, Inc. (President), AT&T IT
Contact

Comments