24 aprilie 2024

Expansion board for ESP32 D1Mini

 


Well, after testing a lot of ESP32 development boards, I found that the little ESP32 D1 Mini is an excellent one.


 

First of all, it is very fast when programming!

Second, you don't have to fuss around with pressing BOOT, EN/RST or other complicated procedures!

Third, never, but never the programming stopped due to communication errors (like a lot of DevKit boards).

The single inconvenient I can found, and is a big one, is the dual rows of pins!

They are hard to access, I always misread the labels because they are very crammed and I found stupid to have them on the back of the board, but this is, of course, because there is no space on the upper side.

Anyway, you get the ideea: very good boards but pretty hard to use Dupont wires to test various hardware with them.

So, I was looking to an expansion board for Arduino Nano and asked myself if I can find a similar board for D1 Mini! Back in the old days when i start with Arduino (and Nano was a cheap thing) this expansion board was a gem and help me with a lot of projects....


So, I searched for a similar one but all that I found were little boards with some sh$%# on them, none being what I was really needed!

But then, I asked myself, "why not MAKING one"?

First step is to make a PLAN! What are my expectations? How do I mostly use this dev boards? What accessories I often use? 

So, the requirements were written on a paper:

-Power supply from a various sources; both from USB and from external 6-20V.

-Multiple I2C configured to use I2C LCD with SCL, SDA, +, GND.

-I2C for 3V3 and 5V accessories.

-Every GPIO to have it's 3V3 and GND pins near for easy wiring.

-If the board is external powered, the regulated voltages to be available for other accessories.

-Multiple SPI.

-Accessible UART for ... things...

Using EasyEDA I made the schematic:

... and while waiting for the boards ordered in China, I also ordered the components.



Well, yeah, a close inspection will reveal that I made a mistake with the coaxial power Jack... I wired the wrong pin to Vcc :-( but the cutter fixed the little annoyance.


 

The 3V3 can be selected from the external power supply or from the ESP regulator:

 

I have two 3V3 I2C and two 5V I2C. Yes, i know the best practice is to have level translators but a 220 Ohm on each SDA and SCL will do the job very well...


 

3 SPI, one with the CS0 at GPIO5


UART and two regulated power outputs:

 

... and each GPIO have its GND and +3V3 near...










09 aprilie 2024

ADC. Rezolutii si Volti

ADC-urile convertesc eșantioanele unui semnal analogic în valori digitale.

Rezoluția ADC-ului este numărul de biți pe care îl utilizează în vederea digitizării eșantioanelor de intrare. 

Pentru un ADC pe n biți, numărul de niveluri digitale discrete care pot fi produse este 2n. 

Astfel, un digitizor pe 12 biți poate rezolva 212 sau 4096 niveluri. 

Cel mai puțin semnificativ bit (lsb) reprezintă cel mai mic interval care poate fi detectat și, în cazul unui digitizor pe 12 biți, este 1/4096 sau 2,4 x 10-4. 

Pentru a converti lsb într-o tensiune, luăm intervalul de intrare al digitizorului și îl împărțim la doi, ridicat la rezoluția digitizorului.

27 martie 2024

VFO Encoder selection for Xiegu G90

 From time to time someone start searching for part number of the VFO encoder.

Here is a selection of part numbers for encoders without detent (no clicks).

As a personal observation, with more than 18 pulses per revolution it is a pain to use a no detents encoder...

For no detent encoders:


From BOURNS:



PEC11R-4020K-S0018 with knurled shaft, 20mm lenght, no detents, momentary switch and 18 pulses per revolution.

PEC1R-4025F-S0018 with flatted shaft. From ALPS, EC11E, 20mm long flatted shaft (only) momentary switch.

 

 

From ALPS: 


EC11E153440D with 15 pulses per revolution.

EC11E18344Oc with 18 pulses per revolution.

 

For both producers I reccoment study their product selection datasheets which can be downloaded as pdf clicking on their names.

 

I usually like to have longer shafts and cut them to my needs so, if you want a shorter one, just check the datasheets for the part number. 

Both are producing compatible encoders for VFO, VOL and FUNCTION. 

 

Most viewed posts in last 30 days