Serial Communication with SMS Modem (FONA) Posted on October 18, 2015 at June 27, 2016 by Elijah 3267 0 import serial ser = serial.Serial(port='/dev/ttyAMA0', baudrate=115200, timeout=1) cmd="AT\r" ser.write(cmd.encode()) msg=ser.read(64) print(msg) 123456 import serialser = serial.Serial(port='/dev/ttyAMA0', baudrate=115200, timeout=1)cmd="AT\r"ser.write(cmd.encode())msg=ser.read(64)print(msg) Keep Reading : GPS RESPONSE CODE ORDER Serial Commands used by our Satellite transciever. python to send a SMS message GPS AT Commands
LED Blinking Posted by Elijah - August 15, 2015 0 You will need the following things: Raspberry pi configured (see previos lessons) 5 Volt LED bulb(s) 2 jumper wires m/f…
maserCycle.py – Cycle through lasers on servos and draw lines Posted by Elijah - March 17, 2017 0 This is the third of five articles on my 2017 laser science project "Rock, Paper, Lasers." This one was just…
Super Simple Google AIY Surveillance Camera Posted by Elijah - August 31, 2018 0 In may 2018, durning the bay area Maker Faire in San Francisco, I bought a google AIY Vision Kit. I…
Hello World Posted by Elijah - August 15, 2015 0 We use python to write all of our scripts. On our raspberry pi every python script starts with a shebang…
Read email from a system pipe into python Posted by Elijah - August 15, 2016 0 #!/usr/local/bin/python import sys import email full_msg = “” for line in sys.stdin full_msg += line msg = email.message_from_string(full_msg) to =…