Just a heads up I can get this to work if I use M5Unified.h instead of M5Core2.h
Best posts made by PaulB
-
RE: Core2 with PoE Base
Latest posts made by PaulB
-
Displaying an image on a Core2
Hi All,
I have tried multiple ways to display an image on my Core2, it either does not compile or the image is display as a distorted mess.
I am able to display the image on an ESP32 development board connected to 1.3" OLED using the Adafruit Graphic library, so I am not sure if I need to "recreate" the "hex map", I have tried Ricky-Dink online convertor and again, my code refuses to compile.
I have searched the forum and so far have not found any guidance, I am using the M5 Unified.h and not Core2.h
Any guidance would be most appreciated.
Kind Regards
Paul -
PoE Base hardware schematic
Hi,
I am looking for the schematic of the PoE module used in the PoE Base, all I can find on the GitHub is the schematic reflecting the w5500 and its associated connections, but the PoE Module is shown as a header interface.
If anyone can point me in the direction of where I can purchase this PoE Module or the schematic it would be most appreciated.
Regards
Paul -
RE: Core2 and VMeter
Hi,
Thank you for the guidance, I now have it "working" but had to change quite a bit of code.
The Core2 download "pack" that I initially installed has completely different example code as well as the M5_AD1115 library has a few typo's in it so the examples don't compile to start.
I now know not to trust the initial download "pack" and over write the separate library's with the library's for the separate GitHub library's, then check for Typo's.
M5Stack should review every download "pack" to make sure all their examples work out the box, to avoid confusion.
Now I have working code, all I wanted was to have a simple Volt Meter that I can build into a Test Fixture and read voltage back to a C# GUI, now the code from your links only shows a negative voltage, the only way to correct this is to swap the positive and negative connection points to my circuit I am wanting to measure.
It's not ideal, but at least I have a working solution, Thank you again.
-
Core2 and VMeter
Hi,
I have an issue with the provided examples regarding the Core2 and the VMeter.
I have tried all the examples I can find on the M5Stack Github but each have the same result, The Touch Screen stops responding to touch after programming and boot.
I have confirmed that the Touch Screen still works correctly. By reprogramming the factory default sketch back into my Core2 and that functions correctly.
What I am doing wrong?
What I am overlooking?Any help will be much appreciated.
Kind Regards
Paul -
RE: Core2 with PoE Base
Just a heads up I can get this to work if I use M5Unified.h instead of M5Core2.h
-
RE: Core2 with PoE Base
I have also tried just M5.begin(); same result as M5.begin(true, true, true, false, kmBusModeInput); where LCD briefly "flashes" (which appears like its trying initialize), internal Green Led flashes and both LCD and Green Led then go off, only difference is the speaker has a low volume "sequel" that is produced with just M5.begin(); the entire time there after, with the other M5.begin(.....) command the speaker is quiet.
I can only get functionality from the Core2 if USB is plugged in.
What should my setup look like?
Here is my code so far... I don't know how to indicate code in a post, so sorry if this is not the correct way to do this.
#include <M5Core2.h>
#include <SPI.h>
#include <M5_Ethernet.h>byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
char server[] = "www.google.com"; // name address for Google (using DNS)IPAddress ip(192, 168, 0, 177);
IPAddress myDns(192, 168, 0, 1);EthernetClient client;
void setup {
M5.begin(true, true, true, false, kmBusModeInput);
Ethernet.init(GPIO_NUM_26);
M5.Lcd.setTextSize(2);
M5.Lcd.setTextColor(TFT_WHITE, TFT_BLACK);
M5.Lcd.println("Ethernet Test!");M5.Lcd.println("Initialize Ethernet with DHCP:");
if (Ethernet.begin(mac) == 0) {
M5.Lcd.println("Failed to configure Ethernet using DHCP");
// Check for Ethernet hardware present
if (Ethernet.hardwareStatus() == EthernetNoHardware) {
M5.Lcd.println("Ethernet shield was not found. Sorry, can't run without hardware. :(");
while (true) {
delay(1); // do nothing, no point running without Ethernet hardware
}
}
if (Ethernet.linkStatus() == LinkOFF) {
M5.Lcd.println("Ethernet cable is not connected.");
}
// try to congifure using IP address instead of DHCP:
Ethernet.begin(mac, ip, myDns);
} else {
M5.Lcd.print(" DHCP assigned IP ");
}
// give the Ethernet shield a second to initialize:
delay(1000);
M5.Lcd.print("Connecting to ");
M5.Lcd.print(server);
M5.Lcd.println("...");// if you get a connection, report back via serial:
if (client.connect(server, 80)) {
M5.Lcd.print("Connected");
} else {
// if you didn't get a connection to the server:
M5.Lcd.println("Connection failed");
}}
void loop() {
}
Is the sequence of commands critical?
Is there a command to force the Axp to use MBus seeing that kmBusMode* is no longer used
-
RE: Core2 with PoE Base
Next question...
How do I force my Core2 to be powered only from the PoE Base, I have tried this and it still needs the USB cable plugged for a power source.
M5.begin(true, true, true, false, kMBusModeInput);
-
Core2 with PoE Base
Hi All,
I have just purchased myself a Core2 and a PoE Base. New to M5Stack but 5 years experience on ESP32's.
I am battling to get the Core2 to "see" the W5500 on the PoE Base with no luck, I have tried the M5-Ethernet WebClient.ino and I keep seeing "Failed to configure Ethernet using DHCP, Ethernet shield was not found. Sorry can't run without hardware. :(
What am I missing something? I am using the stock M5 Arduino library's, do I need to adjust some #define's?
Thanking you in advance, any assistance will much appreciated.
Regards
Paul