I don't recommend this product. This is what it looks like after being in a barely damp plant overnight! No wonder I couldn't get any readings!
Posts made by wwhite
-
RE: UNIT-EARTH with a M5Stack Core - Proper Pin?
-
RE: UNIT-EARTH with a M5Stack Core - Proper Pin?
@teastain Thank you. It's got a grove connector and I didn't want to cut it.
-
UNIT-EARTH with a M5Stack Core - Proper Pin?
Is the the correct code when using a M5Stack core. I don't get any changes when reading the values? Thanks in advance.
#include <M5Stack.h>
void setup()
{
M5.begin(); // Init M5Stack. 初始化M5Stack
M5.Power.begin(); // Init power 初始化电源模块
M5.lcd.setTextSize(2); // Set the text size to 2. 设置文字大小为2
M5.Lcd.printf("UNIT_EARTH EXAMPLE\n");
pinMode(26, INPUT); // Set pin 26 to input mode. 将引脚26设置为输入模式
dacWrite(25, 0); // disable the speak noise. 禁用喇叭
}void loop()
{
M5.Lcd.setCursor(0, 80); // Set the cursor at (0,80). 将光标设置在(0,80)
M5.Lcd.printf("AnalogRead:%d\n", analogRead(36));
M5.Lcd.printf("DigitalRead:%d\n", digitalRead(26));
delay(1000);
} -
Help needed with SERVO Module Board 12 Channels
Does anyone have a working example for the SERVO Module Board 12 Channels? I'm using the code below with single servo on port 1 and all I get when I run this code is "Servo Example" written across the M5Core screen but no movement whatsoever from the servo. Note the ports on the module are 0 thru 11 and my servo is plugged into 1 because the pins on port zero are too close to the module case to get my servo plug in anywhere on that row.
Also, for the to Servo_write_angle(uint8_t number, uint16_t us) and Servo_write_us(uint8_t number, uint16_t us) is number the port number (0..11)?
Thanks in advance.
#include <Arduino.h>
#include <M5Stack.h>
#include <Wire.h>#define SERVO_ADDR 0x53
void setup() {
M5.begin(true, false, true);
M5.Power.begin();
M5.Lcd.setTextFont(4);
M5.Lcd.setCursor(70, 100);
M5.Lcd.print("Servo Example");Wire.begin(21, 22, 100000UL);
}
// addr 0x01 mean control the number 1 servo by us
void Servo_write_us(uint8_t number, uint16_t us) {
Wire.beginTransmission(SERVO_ADDR);
Wire.write(0x00 | number);
Wire.write(us & 0x00ff);
Wire.write(us >> 8 & 0x00ff);
Wire.endTransmission();
}// addr 0x11 mean control the number 1 servo by angle
void Servo_write_angle(uint8_t number, uint8_t angle) {
Wire.beginTransmission(SERVO_ADDR);
Wire.write(0x10 | number);
Wire.write(angle);
Wire.endTransmission();
}void loop() {
for (uint8_t i = 0; i < 12; i++) {
//Servo_write_us(i, 700);
Servo_write_angle(i, 0);
}
delay(1000);
for (uint8_t i = 0; i < 12; i++) {
//Servo_write_us(i, 2300);
Servo_write_angle(i, 90);
}
delay(1000);
} -
Low level neopixel functions with HEX RGB Board question.
Does anyone have an example using low level neopixel functions. I've tried this with the HEX RGB Board with no luck:
import esp
I'm not sure what goes in grb_buy I took a guess.
grb_buf = [0] = 0
grb_buf = [1] = 255
grb_buf = [2] = 0
esp.neopixel_write(26, grb_buf, is80khz) -
RE: Latest Firmware for Atom Lite
I wanted to try this CircuitPython https://circuitpython.org/board/m5stack_atom_lite/
or
v1.9.1 from here https://micropython.org/download/M5STACK_ATOM/
Thanks for responding.
-
Latest Firmware for Atom Lite
Does the Atom Lite come with the latest firmware installed or is there a newer version than Micropython-1.12? I found some firmware on the MicroPython site but when I load it everything appears to go as expected but then I can't reach my Atom Lite via VSCode afterwards. I can put everything back using M5Burner but wanted the newer firmware. Has anyone else trien to update the firmware and if so where did you find it and what version did you use? Thanks in advance.
Here are the results of my attemp showing no errors:
python -m esptool --chip esp32 --port COM11 write_flash -z 0x1000 M5STACK_ATOM-20220618-v1.19.1.bin
esptool.py v3.2
Serial port COM11
Connecting....
Chip is ESP32-PICO-D4 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 4c:75:25:d7:8e:90
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash will be erased from 0x00001000 to 0x0017cfff...
Compressed 1554752 bytes to 1026054...
Wrote 1554752 bytes (1026054 compressed) at 0x00001000 in 93.4 seconds (effective 133.1 kbit/s)...
Hash of data verified.Leaving...
Hard resetting via RTS pin... -
RE: I'm looking for an example using the Atom Lite with the HEX
Ok, I got the HEX RGB LED to work with the Atom Lite. Using the code below everything works as expected but there is an occasional stray LED lighting up in a completely different color. Does anyone know what might be causing that?
from neopixel import NeoPixel
from machine import Pin
from time import sleepnp = NeoPixel(Pin(26), 37)
n = 0
while True:
np[n] = (0, 0, 0)
if n < 36:
n += 1
else:
n = 0
np[n] = (10, 0, 0)
np.write()
sleep(0.2) -
I'm looking for an example using the Atom Lite with the HEX
Does anyone know where I can find an example using the Atom Lite with the HEX?
https://docs.m5stack.com/en/unit/hex
Thanks in advance,
WW
-
What is the best Dupont cable size to use with ESP32 Core and Core 2 controllers?
I noticed when searching Google most Dupont cables are 2.54mm is this the best size for a snug connection on the various M5Stack controllers?
-
RE: Is the Grove port on the M5Stack Basic Core digital or analog?
Thanks #teastain that works!
I simply changed ADXL345 accel(ADXL345_STD) to ADXL345 accel(ADXL345_ALT) in example code ReadXYZ.ino.
Thanks again.
-
RE: Is the Grove port on the M5Stack Basic Core digital or analog?
Thanks ajb2k3. I have established that I have an I2C device at address 0x53. The device is a Seeed Studio101020054 Grove - 3-Axis Digital Accelerometer. Now how do I read a value from that address?
Thanks again.
-
Is the Grove port on the M5Stack Basic Core digital or analog?
I'm trying to connect this Seeed Studio button but not having any luck https://www.seeedstudio.com/Grove-Button.html.
Here is the code:
#include <M5Stack.h>
int last_value = 0;
int cur_value = 0;void setup() {
M5.begin(); // Init M5Stack.
M5.Power.begin(); // Init power.
pinMode(21, INPUT); // set pin mode to input.
M5.Lcd.setTextColor(YELLOW); // Set the font color to yellow.
M5.Lcd.setTextSize(2); // Setting the Font size.
M5.Lcd.setCursor(80, 0); // Set the cursor position to (80,0).
M5.Lcd.println("Button example");
M5.Lcd.setTextColor(WHITE);
}void loop() {
cur_value = digitalRead(21); // read the value of BUTTON.
M5.Lcd.setCursor(80, 25);
M5.Lcd.print("Button");
M5.Lcd.setCursor(0, 45);
M5.Lcd.print("Value: ");
M5.Lcd.setCursor(0, 85);
M5.Lcd.print("State: ");
if (cur_value != last_value) {
M5.Lcd.fillRect(85, 45, 75, 85, BLACK); // Draw a black rectangle 75 by 85 at (85,45).
if (cur_value == 0) {
M5.Lcd.setCursor(95, 45);
M5.Lcd.print("0"); // display the status
M5.Lcd.setCursor(95, 85);
M5.Lcd.print("pre");
} else {
M5.Lcd.setCursor(95, 45);
M5.Lcd.print("1"); // display the status
M5.Lcd.setCursor(95, 85);
M5.Lcd.print("rel");
}
last_value = cur_value;
}
}Thanks in advance.
-
RE: Is my M5Core dead the LCD display is blank? I can erase it burn to it with M5Burner.
Thanks for responding ajb2k3. I'm certain it's the M5Core version I'm installing. I wrote to M5Stack for information regard a replacement and what the cost would be.
-
Is my M5Core dead the LCD display is blank? I can erase it burn to it with M5Burner.
I have a M5Core version 2.4 which has nothing on the display. I can see the backlight come on but that's it. This is an older device but I've never used it before as I purchased multiple units. I can see it on the com port and communicate with it via M5Burner. I've erased it and tried different version of UIFlow to no avail. Does anyone have any ideas or is it dead? Thanks in advance.
-
Why are timer camera F pictures taken mirrored?
Why are timer camera F pictures taken mirrored? What's on the left side of the picture is what should be on the right side. It's as if taking a selfie in the mirror. I'm using the TimerFolderPusher v1.2 burned via M5Burner. Thanks in advance.
-
RE: M5 Core turns off after a few minutes using Base AAA Battery Holder
Thanks for responding Felix,
I'm using a M5Stack.
The red light on the AAA battery holder stays lit when the app stops.
My program calls an api on the internet and displays 8 lines of text.
The app will run nonstop when using USB power and perform as intended.WW
-
M5 Core turns off after a few minutes using Base AAA Battery Holder
My M5 Core turns off after a few minutes using Base AAA Battery Holder. I have to press the power button to turn it on again. Is there some sort of power management taking place behind the scenes? Has anyone experienced this issue?
-
RE: Can I connect the Unit LoRaWAN915 to an ATOMIC GPS Module?
@felmue I purchased a M5Stack LoRaWan 915mhz device and connected it to the Atom and was able to connect and send data to the Helium network https://www.helium.com/ now I need to see if I can get it going with the GPS too.