Skip to content

M5Stack Menu system - allows the use of multiple applications. Apps include WiFi Scanner, QR Code creation & display, DHT12 sensor display, I2C Scanner, Stopwatch, Sleep mode, Brightness adjust, System info & more.

License

Notifications You must be signed in to change notification settings

PartsandCircuits/M5Stack-SAM

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

M5Stack-SAM




About

A Simple Application Menu (SAM) system for the M5Stack .

So far includes x8 applications plus access to system info and settings.

By Tom Such - https://github.com/tomsuch/M5Stack-SAM - Other contributors listed below.

There are 3 very minor changes applied here compared to the original (they don't touch the working code). Changes listed below.

M5Stack-SAM brings MULTI FUNCTIONALITY to the M5Stack !!

Loaded on the M5Stack, the SAM provides access to a number of applications that would normally be loaded as individual sketches. Applications are listed below. SAM also allows access to system info and some settings.

The Main Menu provides access to three sections: Applications, System, & Configuration.

Installation

To upload to M5Stack, in Arduino please be sure to use M5Stack library version 0.1.6. You may need to downgrade your library version....

To downgrade the M5Stack library version:

In Arduino, go to Sketch/Include Libraries/Manage Libraries then type M5Stack into the search field at the top.... it should then indicate which library version you have installed. If not 0.1.6 then click "Select Version" and select 0.1.6 and then select to install it.

Once you have the SAM menu loaded on your M5Stack you can then revert back to a more recent version of the M5Stack library.



Applications:

DHT12 Sensor display - Temperature / Humidity
Stopwatch
I2C scanner
Bluetooth BLE Beacon Simulator (iBeacon, Eddystone TLM + URL, ALTBeacon)
QRCode Generator & QRCode Display
GY-512 (MPU6050) - gyro/accelerometer (requires hardware mod + GY-512)
SerialBridge - PASS-THRU USB <-> UART2
WiFi Scanner 

System:

Sleep / Charging Mode
M5 System Info - CPU Speed, Flash Size, Flash SPEED, SDK Version

Configuration:

Adjust display brightness   (conserves battery)




M5Stack-SAM Demonstration





QRCode showing:

QRPrint  (Visit the M5Stack website - "www.m5stack.com");
QRCode can be changed - in Arduino IDE, with M5Stack-SAM.ino open, change data on the "ÄPPS" tab - line 348. 

SimpleBeacon:
ble.iBeacon(10,20,50); // ble.iBeacon(MajorCode,MinorCode,Power);
ble.EddystoneTLM(2048,512,100,1024); // ble.EddystoneTLM(Voltage,Temperature,packetCount,timeSECfromPowerUp);
ble.EddystoneURIPlain(1,"brmlab.cz",1); // ble.EddystoneURIPlain(prefix,"url.url",Power);
	prefix:
		0	http://www.
		1	https://www.
		2	http://
		3	https://
ble.AltBeacon();

Serial commands:
Serial control at 115200 8N1 and NL&CR termination

wifiscan - scan for WiFi networks

i2cscan - scan I2C BUS for devices

bright [0-255] - display bright
    	EXAMPLE: bright 128
	
clr - clear display

sleep - power sleep, wakeup on BTN_B

qrc [text] - show QRCODE with text
	EXAMPLE: qrc www.google.com

Send iBeacone message
ibeacon [major code 0-65535] [minor code 0-65535] [power 0-255]
	EXAMPLE: ibeacon 1024 2048 50

Send Eddystone TLM message
eddystonetlm [voltage 0-65535] [temperature 0-65535] [pocket cound 0-4294967295] [second from up 0-4294967295]
	EXAMPLE: eddystonetlm 100 200 300 400

Send Eddystone URL message
eddystoneurl [prefix 0-3] [power 0-255] [url]
	EXAMPLE: eddystoneurl 1 1 google.com
	PREFIXES:
		0	http://www.
		1	https://www.
		2	http://
		3	https://		


Based on:

https://github.com/Kongduino/M5_QR_Code
https://github.com/ricmoo/qrcode
https://github.com/kroimon/Arduino-SerialCommand


Changes applied to this version:

Authors name removed from main menu screen display on M5Stack (perhaps an About page could be added to the system section?).
Added acknowledgement of author and contributors to the code pre-amble so it travels with the code.
QRCode generated and displayed changed from authors name to M5Stack - www.m5stack.com 

About

M5Stack Menu system - allows the use of multiple applications. Apps include WiFi Scanner, QR Code creation & display, DHT12 sensor display, I2C Scanner, Stopwatch, Sleep mode, Brightness adjust, System info & more.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 61.4%
  • C 38.6%