Here is fft bin 12 = 3.6kHz, and SAMPLING FREQUENCY 40000, so I put 40000 to Goertzel but nothing changes. In fft LCD is responding to PA6, numbers are jumping without signal from noise in Goertzel on LCD is 28.3 steady.
#include "arduinoFFT.h"
#include <LiquidCrystal.h>
LiquidCrystal lcd(PB15 ...
Search found 70 matches
- Fri Dec 18, 2020 7:18 pm
- Forum: Projects
- Topic: Goertzel for stm32f103 LCD
- Replies: 17
- Views: 15895
- Fri Dec 18, 2020 4:42 pm
- Forum: Projects
- Topic: Goertzel for stm32f103 LCD
- Replies: 17
- Views: 15895
Re: Goertzel for stm32f103 LCD
it is compiling but not working I added LCD, in uno LCD it is alive in stm32 it is dead just displays 0.00 and do on respond to signal on PA6.
// Set things up
//http://play.fallows.ca/wp/radio/ham-radio/signal-analysis-morse-decoder/
#include <Goertzel.h>
int sensorPin = PA6;
//int sensorPin =A0 ...
// Set things up
//http://play.fallows.ca/wp/radio/ham-radio/signal-analysis-morse-decoder/
#include <Goertzel.h>
int sensorPin = PA6;
//int sensorPin =A0 ...
- Thu Dec 17, 2020 9:14 pm
- Forum: Projects
- Topic: Goertzel for stm32f103 LCD
- Replies: 17
- Views: 15895
Re: Goertzel for stm32f103
Thanks it is done, no errors. For some reason I have higher space usage
Code: Select all
Sketch uses 25352 bytes (38%) of program storage space. Maximum is 65536 bytes.
Global variables use 3960 bytes (19%) of dynamic memory, leaving 16520 bytes for local variables. Maximum is 20480 bytes.
- Thu Dec 17, 2020 6:40 pm
- Forum: Projects
- Topic: Goertzel for stm32f103 LCD
- Replies: 17
- Views: 15895
Re: Goertzel for stm32f103
so I made modification
// Set things up
//http://play.fallows.ca/wp/radio/ham-radio/signal-analysis-morse-decoder/
#include <Goertzel.h>
int sensorPin =PA6;
//int sensorPin =A0;
int led = PC13;
//int led = 13;
//const float TARGET_FREQUENCY = 500;
const float TARGET_FREQUENCY = 5000;
const int N ...
// Set things up
//http://play.fallows.ca/wp/radio/ham-radio/signal-analysis-morse-decoder/
#include <Goertzel.h>
int sensorPin =PA6;
//int sensorPin =A0;
int led = PC13;
//int led = 13;
//const float TARGET_FREQUENCY = 500;
const float TARGET_FREQUENCY = 5000;
const int N ...
- Thu Dec 17, 2020 2:42 pm
- Forum: Projects
- Topic: Goertzel for stm32f103 LCD
- Replies: 17
- Views: 15895
Re: Goertzel for stm32f103
With new IDE the error is;
Arduino: 1.9.0-beta (Windows 7), Board: "Generic STM32F103C series, STM32F103C8 (20k RAM. 64k Flash), STM32duino bootloader, 72Mhz (Normal), Smallest (default)"
In file included from C:\Users\John\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2017.8.5 ...
Arduino: 1.9.0-beta (Windows 7), Board: "Generic STM32F103C series, STM32F103C8 (20k RAM. 64k Flash), STM32duino bootloader, 72Mhz (Normal), Smallest (default)"
In file included from C:\Users\John\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2017.8.5 ...
- Wed Dec 16, 2020 11:14 pm
- Forum: Projects
- Topic: Goertzel for stm32f103 LCD
- Replies: 17
- Views: 15895
Goertzel for stm32f103 LCD
Hi
This program is working fine with arduino uno, for blue pill there is compiling error. I looked at Goertzel.h but I didn't find something special which can cause the problem.
Here are, program, error, Goertzel.h file.
// Set things up
//http://play.fallows.ca/wp/radio/ham-radio/signal-analysis ...
This program is working fine with arduino uno, for blue pill there is compiling error. I looked at Goertzel.h but I didn't find something special which can cause the problem.
Here are, program, error, Goertzel.h file.
// Set things up
//http://play.fallows.ca/wp/radio/ham-radio/signal-analysis ...
- Mon Nov 23, 2020 5:25 pm
- Forum: Projects
- Topic: FFT Quadrature detector
- Replies: 4
- Views: 6580
Re: FFT Quadrature detector
This is what I did.
#define SAMPLES 128
#define SAMPLING_FREQUENCY 1000
int valuePin = PA7;
int Value ;
void setup()
{
pinMode(PA7, INPUT);
Serial.begin(250000);
}
void loop() {
int i;
Value[i] = analogRead(valuePin);
for(int i=0; i<SAMPLES; i++)
{
//FFT(data, 64, 100); //to get top ...
#define SAMPLES 128
#define SAMPLING_FREQUENCY 1000
int valuePin = PA7;
int Value ;
void setup()
{
pinMode(PA7, INPUT);
Serial.begin(250000);
}
void loop() {
int i;
Value[i] = analogRead(valuePin);
for(int i=0; i<SAMPLES; i++)
{
//FFT(data, 64, 100); //to get top ...
- Mon Nov 23, 2020 3:41 pm
- Forum: Projects
- Topic: FFT Quadrature detector
- Replies: 4
- Views: 6580
Re: FFT Quadrature detector
How to replace the data by this ?
Code: Select all
int valuePin = PA7;
void setup() {
pinMode(PA7, INPUT);
}
void loop() {
Value = analogRead(valuePin);
}
- Mon Nov 23, 2020 3:14 pm
- Forum: Projects
- Topic: FFT Quadrature detector
- Replies: 4
- Views: 6580
FFT Quadrature detector
Hi
I am trying to build an code for quadrature detector.
The first step is to use analog pin - PA7 - as input instead of - //Example data: ?
//Example data:
int data[64]={14, 30, 35, 34, 34, 40, 46, 45, 30, 4, -26, -48, -55, -49, -37,
-28, -24, -22, -13, 6, 32, 55, 65, 57, 38, 17, 1, -6, -11 ...
I am trying to build an code for quadrature detector.
The first step is to use analog pin - PA7 - as input instead of - //Example data: ?
//Example data:
int data[64]={14, 30, 35, 34, 34, 40, 46, 45, 30, 4, -26, -48, -55, -49, -37,
-28, -24, -22, -13, 6, 32, 55, 65, 57, 38, 17, 1, -6, -11 ...
- Sun Nov 22, 2020 2:52 pm
- Forum: Projects
- Topic: DMA problem solved
- Replies: 26
- Views: 22998
Re: DMA Synchronization problem
I put PB6,PB8 inside - void init_wave() - I got only sine
void init_wave()
{
int i;
for (i = 0; i < SAMPLES; i++)
{
val[i] = 40 + amp * sin(stp * i);
val1[i] = 40 + amp * cos(stp * i);
if ( val[i] < 40)
{
digitalWrite(PB8, HIGH);
}
else
{
digitalWrite(PB8, LOW);
}
if ( val1[i] > 40 ...
void init_wave()
{
int i;
for (i = 0; i < SAMPLES; i++)
{
val[i] = 40 + amp * sin(stp * i);
val1[i] = 40 + amp * cos(stp * i);
if ( val[i] < 40)
{
digitalWrite(PB8, HIGH);
}
else
{
digitalWrite(PB8, LOW);
}
if ( val1[i] > 40 ...