I also use Visual Studio but with Visual Micro.
Using that you can use the LTO compile/link options.
I believe that it's the LTO option that takes out unused code.
This has been asked before on the forum. I seem to recollect that some cheaper ones have a longer life than the more expensive variety.
If you google PJRC RTC Battery Life I am sure you will find some useful...
#include <SPI.h>
// Define the MIDI channel and CC number you want to use for CV output
const int midiChannel = 1; // MIDI channel (1-16)
const int ccNumber = 20; // Control Change (CC) number (0-127)
// Define...
What you need for the level shifting are these. They were designed for serial port level shifting / use.
Breakout modules can be bought here as well as many other places.
I have used them without problem.
Teensy's and other similar type systems ALWAYS operate at 100%. The actuate your program ALL the time.
They are not like PC's with operating systems with pre-emptive multi-tasking where the PC constantly switches...
Without seeing the project and software would be just a guess!
Instead of re-laying out your board what would be usefull would be a conversion board.
I suspect there would be many people in the market for such an...
I know that with the potential divider that you should only see circa 2.5V on A0 but if one or other of the pins become
unconnected it is possible that A0 might have seen 5V and have been damaged.
I use this library...
I don't think it does work.
EEPROM.write ONLY writes ONE byte.
If you want to write the way you are doing you need to somehow strip out EACH byte of the 4 bytes making your float and send them individually.
Likewise...
EEPROM.write(addr, *((uint8_t*)&FocusCalib));
addr += 4;
EEPROM.write ONLY writes a byte, so why are you advancing the addr by 4?
Why not use something like below:
#include <EEPROM.h>
...
There is NO ESPNow code in that code.
Where is the code for the ESPs?
Why not send it over serial from the Teensy to the ESP and then use ESPNow to send between ESPs.
Yes I have it working fine. Teensy Commanding an ESP32C3 to switch a Sonoff(ESP8266) on/off via ESPNow.
Please show your code for the three processors.
You do realise that ESP Now commands for ESP8266 and ESP32 are...
Wire Strippers, I would recommend something like this.
As for joining wires.
Twist together the two wires to be soldered.
You will now have the wire ends to be soldered sticking at right angles to the general run...
The GLARKS was just by way ofv example.
There is a lot of Chinese sellers selling similar or the same crimpers.
I usually try and look at the recommendations (or otherwise) for any purchase off Amazon, and just...
Those crimpers are for this sort of connector. Is that what you are after?
If you are after something to create DUPONT connectors then you should be thinking of something like this.
An easier and cheaper solution...
If you read the buzzer DataSheet you will find that it's nominal voltage is 12v with a range of 6V-24V.
The current required is rated as a nominal 25mA.
Your Teensy can put out 3.3V max with a current of 4mA. Any...
Perhaps the format, for some reason, is not compatible with Teensy.
Formating with the Win/Linux/Mac sdcard.org formatter
will remove that potential variable.
If you want an accurate RTC look at the RV-3028-CT. It's factory calibrated to +/- 1 ppm @ 25C.
You can get a sample from the manufacturers (demo board and/or ICs) or if you are short of time Pimoroni do a breakout...
My first thought is that it is Power Limited (3v3 current).
If it's processor speed then you could look at these.
Currently sold out at LilyGo but still available from Aliexpress.
That's the wrong side of R! and R2. You have chosen to solder between the Resistors and Processor. D+ and D- are on the other side of the resistors.
EDIT:
If you do solder in the place indicated then just add 33R...
I have a couple of suggestions:-
Having two Libraries with the same name, especially with the similarities that exist, could (will) be extreemly confusing so
1) could you change the library name to remove the...
You might also be interested in looking at QNEthernet.
It seems to have taken over from NativeEthernet and is the place to go for Ethernet connectivity.
One thing I see is that you use Serial.println but you have not initialised Serial in setup() or anywhere else.
After having initialised Serial using Serial.begin(115200) it might be useful to sprinkle some more...
#include <NativeEthernet.h>
#include <SD.h>
#include <stdlib.h> // necessario per qsort
// Inizializza la connessione Ethernet e il server Web
byte mac = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192,...
Sorry, you said that you had downloaded Teensduino.exe. You don't need that for Arduino 2.
I am still on Arduino 1.18, with VisualMicro, so I will be unable to help further, not having experienced Arduino 2.
Sorry.
Most types of electronics have access to a reset by placing a needle into a small, almost unseen, hole.
For myself I have a very small hole in the outside wall of a case above the program button.
This small hole opens...
True, hence the use of pack.
I mainly use pack where I am communicating between different MCU types over radio or serial. One does not know that ESP32 will pack the same as Teensy for example.
That's how my system works, data is entered until the array fills up, then data entry recommences from zero.
Head points to the next free space, Tail points to the first data entry.
When the system starts...
I use such a ring buffer I have created to keep a record of events and occurrences/outcomes.
By way of an example I have a system where two MCUs are communicating. MCUa is commanding MCUb.
MCUb takes a command,...
Any thoughts on a suitable name?
Possibly RingBuffer?
Since Simplicity is the aim SimpleCircuitBuffer/SimpleRingBuffer or UnComplicated?
Since it will work with any type of data UniversalRingBuffer /...
EDIT: I have changed the name of the library to UniversalRingBuffer. It is stored/available here. Where CircularBuffer is stated "insert" RingBuffer. Nothing other than the name has changed except SaveRBInfo and...
Yes in my quick scribbling I had forgotten to add "TestHeader th; //create an instance of TestHeader"
In am sure I had used "TestHeader::testType testData;" in all my attempts to get the original code working.
But...
I am a relative newby to c++ and I could do with some help.
I am trying to pass a type from a header file to an ino but it's not compiling.
I have generated a cut down example to demonstrate the problem.
I have...
I agree with using a struct however, as a c++ newby, I do not understand your code. It also does NOT compile.
I also tend to use #pragma pack(push,1)....#pragma pack(pop) to compact the data. I use this mainly when...
On the system I am designing (...for a long time now!!) I was intending to use battery power until the on-load voltage had dropped to 3.2V, then go into Snooze mode having warned the central control that the battery...
Use the link https://www.pjrc.com/teensy/td_157/TeensyduinoInstall.exe. It's the normal link with the 158 changed to 157. Paul usually keeps previous versions of Teensyduino available this way however am not sure how...
Looking at the data sheet for the LDO used the minimum input voltage to the 3.3V regulator varies dependant upon current load. This minimum input voltage can be anything between 3.375vV and 3.980V, so the 3.3V output...
Try adding this line after Serial.begin(115200);
while (!Serial && millis() < 5000){} // waits for connection to PC
It's possible that the Teensy is SO fast that it has "printed" the data before comms are set up...
Using Google would find this and this. I am sure that there are many more.
If you looked you would find this.Circuit diagram at the bottom of the page.
I suspect you might be using one of these:-
If you are a number of points come to mind;
(1) you cannot use the 3.3V output as an indication of battery condition. That voltage is generated by a buck/boost converter...
/*
look at button pins for the layout, it's just an array of 8 buttons and 4 potentiometers.
- You'll have to change the potentiometer max and min values in the map() functions for your own setup.
What code does:...
Will there be any plans to introduce a low power Teensy, now that Teensy LC and Teensy 3.x are virtually dead and Teensy 4.x does not fit into that category?
If there is will it be supported by the Snooze library (or...
I know it does not solve your problem but I have developed a Nextion library which works just fine on the Teensy.
See it here.
By the way your photo is almost impossible to read with my old eyes (red on black does not...
Before we can really help you, you need to follow the Forum rule at the head of each page, viz "Always post complete source code & details to reproduce any issue!".
If we can't see what your doing or your code it's...