Giter Site home page Giter Site logo

rpi_bluetooth_morse_code's Introduction

rpi-morse
------------------------------------------------------------------------------
                           _
                _ __ _ __ (_)      _ __ ___   ___  _ __ ___  ___
               | '__| '_ \| |_____| '_ ` _ \ / _ \| '__/ __|/ _ \
               | |  | |_) | |_____| | | | | | (_) | |  \__ \  __/
               |_|  | .__/|_|     |_| |_| |_|\___/|_|  |___/\___|
                    |_|

Uses the Raspberry Pi 3's Bluetooth module to transfer and convert messages
into Morse code.


Group Members ================================================================


Brian Alexander Mejorado
Samuel Mosher


Table of Contents ==================================================== [TOC00]


1. Compilation [COM01]
2. Hardware Set-up [HSE02]
3. Execution [EXE03]


Compilation =========================================================== [COM01]


This application executes using two separate programs: send and receive.
Before compiling the code, both the receiving and sending Raspberry Pi 3 must
install the required Bluetooth libraries with the following command:

                 sudo apt-get install bluez libbluetooth-dev

Also ensure that Raspbian libraries are updated with

                              sudo apt-get update

In order to utilize GPIO functionality on the Raspberry Pi, the wiringPi
library is used. WiringPi is not available on apt-get, but can be acquired
using `git` and the following commands:

                   git clone git://git.drogon.net/wiringPi
                                 cd wiringPi
                                   ./build

Before compiling, make sure that `gcc` and `make` are installed. Both of
these programs come with Raspbian out of the box, but the following commands
can be used to verify that they are still there:

                                gcc --version
                                make --version

Once the presence of `gcc` and `make` are verified, the following command will
compile both `send` and `receive` into the bin/ directory:

                                     make

If you want to connect to a receiving Raspberry Pi using a different device
that has access to the BlueZ library, you can compile the `send` program
individually using the following command:

                                  make send

The device will then be able to send to the Raspberry Pi by running `send`.


Hardware Set-up ======================================================= [HSE02]


The electronic Morse code pulses are sent through GPIO pin 17, so to use an
LED with the program, connect a grounded LED to GPIO pin 17 with a jumper
cable.

It is possible to use the UART with the program.


Execution ============================================================= [EXE03]

Before executing this program, be sure to specify the Bluetooth connection to
drive through the Mini-UART in Raspbian's config.txt. Also make sure to set
the core frequency to 250. The following options in config.txt will accomplish
this:

                           dtoverlay=pi-miniuart-bt
                                core_freq=250

This program is split into two parts: `send` and `receive`. `send` allows the
user to connect to a Raspberry Pi running `receive` with a specified bluetooth
address, like so:

                             send A1:B2:C3:D4:E5

Before executing the `receive` portion of the program, run `bluetoothctl` and
enter the following commands in the console:

                               discoverable on
                                     exit

This allows the computer or Pi running the `send` program to establish the
connection. Then, run `receive` with the following command:

                                 sudo receive

Then, any program running `send` can send messages to the receiving Pi, which
will convert the messages to Morse code in the form of electronic impulses.


==============================================================================

rpi_bluetooth_morse_code's People

Contributors

bam9523 avatar smosher55 avatar

Watchers

James Cloos avatar Samuel Mosher avatar

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.