I think it would be useful to see if you can leverage use of the SPI hardware built in to the Teensy. Looking at wikipedia, it seems that FM encoding could be done by encoding two bits for each bit...
Type: Posts; User: rcarr
I think it would be useful to see if you can leverage use of the SPI hardware built in to the Teensy. Looking at wikipedia, it seems that FM encoding could be done by encoding two bits for each bit...
>> drawing circle at (-8,263)
This is probably not your issue but something I noticed:
Your calls to fillCircle with coordinates off the screen probably return without doing any drawing. So...
Here is some simple polling code for cheap mechanical encoders. Just replace the new_ = PINC line with some digitalReads for whatever micro you are using. The code does not keep track of absolute...
Since it is on a breadboard with long wires I suggest trying a slower clock, 10 mhz or slower: // tft.setClock(10000000);
It could be a faulty display that forgets its rotation setting. You...
Yes it is.
Pretend your keeping the values listed on a piece of paper:
The first value, you simply write that down on the paper and also its index 0
Scenario 1: The values are always increasing: Since...
The circuit has an opto-isolator which consists of a light emitting diode and photo sensitive transistor. When the jumpers are off, the Teensy will be totally isolated from the relay power supply -...
23623
According to this schematic from Amazon which may or may not be correct, you do not need the ground connection from the external power supply to the Teensy. BUT your external supply should...
Serial.write(incomingByte);
Serial.println();
println expects a zero terminated char array which you don't have. Also do you really want to put a return/line_feed every 512 characters into your file ?
I think you will be better served with...
I suggest you take the whole debug routine out of interrupt context and put it in loop(). That would just be I guess.
#ifdef DEBUG
serialInput();
...
You have interrupts disabled during this loop. That shouldn't be needed. Have you tried running your EEprom loop with interrupts enabled?
char s[4];
char h[2];
These char arrays are not big enough. A char string has a zero terminator on the end.
char line[17];
int scen_min = 0;
int scen_max = 18;
......
void scenario ()
{
line[16];
for (int y = scen_min; y < scen_max; y++)
If the servo glitches are from random noise, then an average makes sense. When I have sampled PWM servo signals, I found the issue was due to interrupt latency. My solution was to ignore values...
You appear to be reading PWM with a library that uses pin change interrupts. Your analog read on pin A9 changes the interrupt pin from digital to analog and it may no longer respond to pin changes(...
A basic idea without any details: you could set up a PWM pin at 150 khz, set up another PWM pin at 150500 hz, run those outputs to a 2:1 mux and toggle the mux select pin at the 600 baud rate. And...
A10 is an analog only pin. It does not have digital drivers.
https://www.pjrc.com/store/teensy35.html
I find that datasheet quite lacking in information. But it says the max current is 15ma. The Teensy 3.2 suggests a max of 10ma on an output pin. So to be safe, go with 10ma which would suggest a...
The typical way to do this is to use a shadow register in ram. It may be slower than what you are currently doing. The advantage of this is that you don't need to keep track of the rest of the...
It should be possible. Look here: https://github.com/threeme3/QCX-SSB
There the author did EER with an 8 bit UNO processor.
Yes you seem to be correct, although a quick look in core shows there are different ways to attach with different levels of functionality.
Yes I think you should determine where in the system the error is happening. Your description of the problem lead me to believe it is in the return data, Teensy4 --> Teensy3. Your examples seem...
// maximum number of lamps in a row
#define NUMLAMPS 7
......................................
int pwmPins[2][NUMLAMPS] = {{3, 4, 6, 9}, {10, 16, 17, 20, 22, 23}};
int howManyLampsOnRow[2] = {4,...
Derek's library mentions correcting the phasing issue automatically. I made it a menu item and call this function when I see issues on the waterfall.
// GUItool: begin automatically generated...
Hi,
After learning a bit from this library and the ZL2CTM code, I wrote my own implementation. For the twin peaks issue, I put a 2 element FIR filter in I and Q channels, constants 1.0 and 0.0...
Sounds like a fun project.
You could use a Teensy 3.5. It has a built in SC card holder which you will need.
The Teensy Prop Shield with motion sensors ( not the LC version without motion sensors...
In your text file, every byte has bit 8 set. That could have happen when you loaded the file in a text editor and the editor loaded a different code page due to some reason. And then the saved file...
Hi Derek,
Thanks for the reply. While building the QCX I left out the 10nf caps C4, C7 and changed the QSD caps to 47nf instead of 470nf. For a bit of humor you might ask why 47nf ? I did...
Thanks Derek for sharing the library. I just got this working, but not without some problems to solve. Perhaps listing my issues can help someone else. I am running on the Teensy 3.6.
Program...
I suggest you remove your biquad filter, apply signals of known frequency to the input and see what bins are populated. You should be able to figure out how it works in short order.
I have played...
>>> using pinMode() on them makes them digital
Your right, pinMode statements are not needed.
My guess now is that the POT is wired incorrectly and shorts out the 3.3 volts when turned.
Your program is missing the pinMode(A0,INPUT) statement, but I don't see how that would cause the...
char fname[6] = "a1.txt";
Your string dimension of 6 is too short for 6 characters plus the zero terminator. And you say the original program generates new filenames each minute, so better check...
>>>each output is connected to a BI color led with a simple circuit to have red on when low and green on with high
>>>with other 3.2 just plugged into usb (no pins connected) same code, it worked...
while (all_tokens[i] != NULL) {
all_tokens[++i] = strtok(NULL, "{,}"); // char msg1[] = "{message_1,1}";
}
There are 3 tokens in the test string( msg1[] ), open bracket, comma, close...
Your oscilloscope picture is not really great for making careful measurements, but to me it looks like your delay is a bit too long. Part of your delay will be interrupt latency, so it needs to be...
I suggest you remove all the UNO register stuff in your program ( DDRD, PORTD, PIND etc ). These registers do not exist in the Teensy, they are faked for compatibility. Use digitalReadFast and...
The underlying ARM processor implements a windowed watchdog, and will reset on too fast or too slow watchdog service intervals. It looks like the default value for the lower counter is 16 ( which...
50% off on a Pickit3 currently until the end of the month. That puts the cost in what I consider the pocket change range.
https://www.microchipdirect.com/product/search/all/PG164130
A PIC 12F series would do what you wish. With 6 I/O pins, you would have 4 spares that could be used with jumpers to select one of 16 delay times.
The LF parts are very low power, as low as 30...
I don't have an answer. I do find it interesting that at 400khz, one bit time is 2.5 us. So it appears you need to wait longer than one bit time although that could be a coincidence.
Line in is on the audio shield. Upper right center on the picture.
16443
Not knowing what insertPadFloat does with the MAX_LINE_SIZE, but assuming it checks for overflow, maybe your calls to
Utilities::insertPadFloat(string_buff, MAX_LINE_SIZE, iter, v.j, 3, 3, ' ');...
I suggest you just write the low level code for this approach and forget about modifying softwareserial. The problem with softwareserial is that it is coded to send bytes, meaning that it blocks...
something.something
You need to look in the header file and get the names of the structure members.
typedef struct __PRGMTAG_ {
const uint8_t *data;
uint8_t image_width;...
At the end of your attached C file is an array of type tChar. You need to use that information as the link from character to the font description and image. It looks like this:
static const...
Are you picking the correct tools? I don't see your program description as needing a state machine. You simply want to dispatch to one of 10 functions. I don't see your program as needing a task...
From your description, I envisioned state driven code and a switch case type of structure. For example:
loop(){
static unsigned long t;
if( t != millis() ){
t = millis();
I suggest you remove the setting of priority on the interrupts. Interrupts of the same priority do not interrupt each other. That is probably not your problem.
Some general observations about...