Skip to content

alexmontdor/GT_38_driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GT-38 Wireless Communication Module Driver

This driver is designed to help using a GT-38 Wireless Communication Module with a Raspberry PI (zero or 3) and its GPIO.

How to connect the GT-38 Wireless Communication Module to your raspberry GPIO

GT-38 Pin -> RASPBERRY GPIO Pin

VCC -> 3.3V

GND -> GROUND

RX -> TX (pin 9)

TX -> RX (pin 10)

SET -> a pin to be chosen

How to use the seiver

Import the class

example 'from GT_38_driver.GT38 import GT38'

Call the class like GT38 (SetPin)

example

'comModule = GT38(6)'

Parameters

speed : integer in bauds

mode : integer between 1 and 4

power : string

channel: integer between 1 ans 120

Methods

getParams() will set class internal parameters corresponding to the module speed, power, mode, channel

setSpeed(speed) speed : int ??? could be 1200, 2400, 4800, 9600

internal Parameter Speed is set

returns True : Mode is Changed False : Mode is not Changed

setMode(mode) mode : int ??? could be 1, 2, 3, 4

internal Parameter Mode is set

returns True : Mode is Changed False : Mode is not Changed

setChannel(channel) channel : int ??? between 1 and 120

internal Parameter Channel is set

returns True : Channel is Changed False : Channel is not Changed

send(message) message : string The method will add the special character '\n'

returns True : Message is sent False : Message is not sent

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages