Do you have something like this in your setup.
while (!Serial);
That will wait forever if USB not attached to PC.
You should use
while (!Serial && (millis() < 3000));
...which will wait for up to 3...
Can you put the bits of text that you are answering into /QUOTE tags.
That way we know what is the oroginal question and what is the answer.
By way of an example below is the configuration of your post above with...
My PCBs with RV3028-C7 are arriving tomorrow.
I can't wait to see if all goes well.
This is my first PCB design for 20 years and my first surface mount.
....on tenterhooks!!
I have not used this feature. I can't find any quotes for accuracy, except for the 32.768kHz crystal which is quoted at 1ppm @25C.
The manual does say that the 8192 Hz, 1024 Hz, 64 Hz, 32 Hz, 1 Hz clock outputs are...
As an alternative to worrying about battery life, why not use a rechargeable cell which you continuously trickle charge whilst power is on?
They can actually be quite cheap. I found one at £0.40...also some at £5+.
Yes I have used a similar RTC decades ago.
In their suggested design I see they suggest a 1uF capacitor for timekeeping retention.
It is possible to get RV-3028-C7 samples and a demo board from MicroCrystal. See...
Yes.
You did not say what "this" is.
Be aware that with JLCPCB items can exist as a Basic Item or an Extended Item. If the latter they have to make changes to the system so charge circa $3. It's a cost of $3 for each...
You could consider using one of these (RV-3028-C7). The current consumption is claimed to be down to 45nA.
I have just incorporated it into one of my designs, though not yet tested. PCBs due with me on Friday (15 Sept...
while (!Serial); // wait for Arduino Serial Monitor
I don't if the above is the source of your problem but you certainly need to change it to the form below, otherwise it can WAIT FOREVER.
while (!Serial &...
The peak voltage of 240V AC is 340V.
If your input is from this source you need your step down circuit to handle this peak (and a a bit more) voltage.
Given a meaningful 10bit ADC input, gives an efective resolution...
If it would be of any help I wrote an extensive library to work with the Nextion displays.
You can see it here complete with (again) rather extensive instructions.
How about this as another take on Moving Averaging.
It takes up some code space but not array space. Downside is it only removes a percentage of the average each time rather than an individual high or low reading but...
Two possibilities come to mind.
1) You could use MTP_Teensy . You would then be able to send a file from a PC to the Teensy and then use Flasher_X to re-program the Teensy.
or
2) Use an RP2040 and a program...
I agree as a generalisation, but he is doing a Batchelors degree and I therefore think he should be more precise in his wording.
A thesis that can have holes picked in it is not going to have a good reception when it...
Ok, if you are doing a Batchelors Thesis you need to be more precise in your wording. Speak in "Engineers Speak" not in "Conversational Speak".
3 - 8 mS is hardly simultaneous.
".....at the same time?" can mean a multiple of things. Do you mean down to a quectosecon (10 ^−30 s) or less?
It would be better if you quantified "at the same time".
It's doubtful if you do mean at EXACTLY the...
You could use VisualMicro with VisualStudio. It takes control of the Arduino Environment and is MUCH easier to use than PlatFormIO. I tried that and ran into the same problems you are.
With VisualMicro you can be...
Hi @lashford,
Can I suggest that when you place code on the forum that you enclose it between CODE tags using the # button on the form.
This maintains your code indenting and makes it easier for anyone to read and...
OK Mark, I've sucumbed!
Also after further reflection I realise that I can delete the series Feed resistor to the C as it's effectively embodied in the potential divider resistors. I can also reduce the capacitor to...
If you look at the circuit in #3 you will see it's a smoothing capacitor in the Low Pass Filter feeding a Teensy input to determin battery voltage and hence assess remaining battery capacity.
Yes but would a Shottky diode connected to the junction and the 3.3V supply also work?
If I understand correctly the Teensy would only see 0.2V above the dying Teensy supply voltage and the charge on the capacitor...
The following compiles just fine:
#include "HT16K33.h"
HT16K33 left(0x71, &Wire);
HT16K33 right(0x70, &Wire1);
...and your code (slightly modified) compiles as well.
I think it does actually. Below is a snippet from his HT16K33.h file.
public:
HT16K33(const uint8_t address, TwoWire *wire = &Wire); // 0x70 .. 0x77
I was confused about all the questions about changing pins...
Thanks for commenting Mark.
How about using a schottky diode from the input pin to 3.3V? Would that suffice?
It wouuld be easier for me to add a diode to the pcb rather than an inline resistor.
The diode could go...
Hopefully Someone WILL COMMENT on this corrected submission.
Above is the "corrected" circuit.
When the Battery/PSU is disconnected the capacitor will (likely) have a charge and will discharge through R2 and R3...
I am sorry to say that I have drawn the circuit incorrectly. The jumper is actually between the battery and the voltage sense resistors and the voltage regulator. I would drawn a new, correct, circuit but I am writing...
It would seem that PulseSensorPlayground has not yet been modified to run with Teensy.
I found the following code in his Interrupts.h file.
// SAVED FOR FUTURE SUPPORT OF TEENSY INTERRUPTS
#if...
I think you are getting confused by 0V and GND.
All your GND connections should actually be 0V.
0V is very often synonimous with GND because GND actually has a potential of 0V.
Now look at your circuit and in your...
You supply the 3 LEDs + with 3.3v.
You connect each of the LEDs -ve to separate Teensy I/O pins, not forgetting current limiting resistors.
Then sending 0 to a pin turns that LED on, sending a 1 turns it off.
Don't...
You understand that to turn something on you send a 1.
In this situation you send a 0 to turn it on and a 1 to turn it off.
Just think the opposite to what YOU would do and all will be well.
Anyway when you send your...
I think you should be asking the question here.
See Help: Asking for Help Tips under Resources at the bottom of the page.
You might find this page helpful.
Change your SD.begin to use BUILTIN_SDCARD as per Paul's post at #2
// Setup SD card
if (!SD.begin(BUILTIN_SDCARD)) {
Serial.println("initialization failed!");
return;
}
Yes, at the time I was writing code as part of my job, I was using Modula2 which has a lot of built in error correction/capture.
I could be assured of catching 99+% of all errors at compile time.
Personally I think...
When I was writing software as part of my job, I would test each and every function against it's requirement and outside it's expected extremes of input/output values.
Such documented testing with results should...
Tried compiling the code you presented and it would not.
Commenting out the line....#include <Adafruit_GFX.h> // Display graphics....and it compiled just fine.
Perhaps this library is connected with your...
I would suggest VisualMicro with Visual Studio.
It builds on top of the Arduino structure so there are no compatibilty problems.
I use it all the time and would not go back.
The code above will wait FOREVER for the Serial (USB) port to be available.
You would be better to have:This will wait UNTIL the serial (USB) port is available OR 3 seconds have elapsed.
That way your program can...