Testing a Frequency Generator Module (#57) - Also, now over 200 subscribers !

Ғылым және технология

This $3.50 frequency generator module from icstation has a backlit LCD and covers frequencies up to 150kHz. I put it through its paces on the 'scope, and experiment with its serial interface.
Item was from icstation.com, but I've removed the link as Webutation reports some malware at that URL. Sorry for that.
STM8 microcontroller: www.st.com/en/microcontrollers...
HT1621 LCD driver:
pdf.datasheetcatalog.com/datas...
Edit: I get the serial interface working in part 3: • Frequency Generator Pa...

Пікірлер: 73

  • @JohnSmith-nw2ls
    @JohnSmith-nw2ls5 жыл бұрын

    This video was very helpful,, I just bought one of these modules from ebay for $7.98, and it came with no datasheet or anything, so thanks again for helping me get started in using it

  • @iggnasio

    @iggnasio

    5 жыл бұрын

    You got ripped off. Aliexpress its under $2

  • @pedrosimon2537
    @pedrosimon25375 ай бұрын

    Very helpful video

  • @VahidBehravanVahid-Behravan
    @VahidBehravanVahid-Behravan4 жыл бұрын

    HI There, Very good explanation and testing, thank you. can this be set as positive offset frequency? (@4:36 it semms to be positiv offset. am I right?)

  • @freshkryp69
    @freshkryp695 жыл бұрын

    How could I vary the duty cycle based off a automotive style temp sensor/switch BMW etc? So I could send the preset pwm signal to a fan motor controller.. 128hz or around there is what the controller is set for from factory.

  • @MartynDavies

    @MartynDavies

    5 жыл бұрын

    You'd probably be better to use an Arduino rather than this module. For example, this project: www.electroschematics.com/9540/arduino-fan-speed-controlled-temperature/

  • @turgor58
    @turgor584 жыл бұрын

    Y'doing it for the Royal Raymond Rife generator?

  • @express375
    @express3754 жыл бұрын

    Hi Martyn, very helpful thanks. I'm trying to switch on and off a solenoid 0-200 times per minute, but not as clever as you guys. I'm guessing this would be part of the solution, if you could point me to another vid to achieve this, that would be even better :)

  • @starlight4038
    @starlight40382 жыл бұрын

    Hi, how to use this device in metal detector? thank you

  • @michealcairns4971
    @michealcairns49714 жыл бұрын

    Is it possible to achieve a PWM signal for frequencies less than 1Hz using this module? I have an application which I need a signal pulsed every 30 seconds and was hoping to use this module to do so.

  • @MartynDavies

    @MartynDavies

    4 жыл бұрын

    No, 1Hz is the lowest this goes. I haven't come across any low-frequency PWM modules.

  • @mustafayilmaz4428
    @mustafayilmaz44283 жыл бұрын

    Hi Mt,r. Davies, I have a problem while I was setting 10Khz.s via serial interface, It doesnt accept values from 10 KHz to 99.9 KHz.

  • @MartynDavies

    @MartynDavies

    3 жыл бұрын

    I have a more recent module here that has slightly different commands - F1000 selects 1kHz, F10000 selects 10kHz. The duty cycle command is more flexible also - you can send 'D2' or 'D98' to select 2% or 98% duty cycle. Try these.

  • @highnumbersface
    @highnumbersface6 жыл бұрын

    Hi Martyn - good video. I've just got one of these and going to try to get the serial comms to work. Did you get any further?

  • @MartynDavies

    @MartynDavies

    6 жыл бұрын

    I'm still working on it, Mark. I have an stm8s003 on an evaluation board, and I just built a code sample yesterday to try to understand the on-board UART, and see if there's something obvious that I'm missing about how to use serial. I can't find any further advice online about how to use the serial port on this frequency generator module (other than the same document that's listed on the icstation site). Interestingly, there is also an earlier similar frequency generator (with 2 channels and a different 7-segment display) , which also seems to have problems with the serial interface. I might get one of these also, and see if I can make any progress with that.

  • @triplecrazy

    @triplecrazy

    6 жыл бұрын

    Looks Like These are the commands for this PWM module. Cheers Communication Standard: 9600 bps Data bits: 8 Stop bit: 1 Check digit: none Flow control: none 1>. set the frequency of the PWM "F101": Set the frequency to 101 HZ (001 to 999) "F1.05": set the frequency of 1.05 KHZ (1.00 ~ 9.99) "F10.5": Set the frequency to 10.5KHZ (10.0 ~ 99.9) "F1.0.5": set the frequency of 105KHZ (1.0.0 ~ 1.5.0) 2>. set the PWM duty cycle "DXXX": set the PWM duty cycle to XXX; (001 ~ 100) Such as D050, set the PWM duty cycle is 50% 3>. read the set parameters Send a "read" string to read the set parameters. Set successfully return: DOWN; Setup failed to return: FALL.

  • @MartynDavies

    @MartynDavies

    6 жыл бұрын

    Thanks for your comment. I actually have it working now - I'll release a video shortly revealing the secret.

  • @MartynDavies

    @MartynDavies

    6 жыл бұрын

    Mark - I've got the answer to the serial comms - see my new video: kzread.info/dash/bejne/Y5ufyrlrXciogKQ.html

  • @shakilshaikh8047
    @shakilshaikh80474 жыл бұрын

    Hi, great video sir, I would like to know if this PWM generator can be connected to an active high 5V TTL input of a CNC laser, Thank you in advance.

  • @MartynDavies

    @MartynDavies

    4 жыл бұрын

    It's definitely not designed to be TTL compatible, but will probably work as long as it is run off 5V. Rather than plug it into an expensive piece of equipment, buy a 74xx TTL chip, e.g. 74LS00 and connect the frequency generator to that, make sure that it works and doesn't burn out.

  • @esecallum
    @esecallum6 жыл бұрын

    what is the white thing at the side of the LCD display and can you switch the backlight off to save power

  • @MartynDavies

    @MartynDavies

    6 жыл бұрын

    It's the end of the backlight structure, and seems to be where the backlight LED is attached. As far as I can see the backlight is permanently on - it would be nicer if it were controlled by the microcontroller.

  • @esecallum

    @esecallum

    6 жыл бұрын

    thanks.perhaps the power supply could be cut by snipping of the leads to the back light or putting a mini dip switch. i wonder what the power consumption is. the led version used about 18 milliamps at 5volts.

  • @MartynDavies

    @MartynDavies

    6 жыл бұрын

    it looks like just one LED in there, so that sounds about right

  • @joedelamo1435
    @joedelamo14352 жыл бұрын

    Hi Martyn, great video and schematic. I have a question. I’m inputting 8v, but my signal out is only dropping down to around 6 V. That is an oscillation between 8v and 6v. Is there something wrong with my unit or am I doing something wrong.

  • @MartynDavies

    @MartynDavies

    2 жыл бұрын

    I haven't encountered that, but I haven't driven the module at more than 5V. I would suspect that the regulator is oscillating, although the 8V looks within its capabilities from the datasheet. You could try putting more capacitance around the regulator, or put a zener in series with it to drop some of the voltage.

  • @joedelamo1435

    @joedelamo1435

    2 жыл бұрын

    @@MartynDavies Hi Martyn. I’ll try your suggestions. Do you think the unit is faulty? Thank you for your quick response. Keep up the great work.

  • @MartynDavies

    @MartynDavies

    2 жыл бұрын

    @@joedelamo1435 No, not necessarily faulty, but they do try to reduce the bill of materials, e.g. by minimising components and sometimes extra decoupling capacitors can be a help.

  • @mikejozefiak2960
    @mikejozefiak29605 жыл бұрын

    HI Martyn, where can I buy these modules in the UK? Mike

  • @MartynDavies

    @MartynDavies

    5 жыл бұрын

    I bought mine from icstation.com in China, but I've seen the same item listed on ebay from UK sellers (more expensive, but faster shipping)

  • @LEO-xo9cz

    @LEO-xo9cz

    4 жыл бұрын

    I bought this one. www.ebay.co.uk/itm/Signal-Generator-PWM-Pulse-Frequency-Duty-Cycle-Adjustable-Module-LCD-3-3V-30V-H/382432921538?_trkparms=aid%3D333200%26algo%3DCOMP.MBE%26ao%3D1%26asc%3D20171012094517%26meid%3D801272f5de3949a484960ac572a0605e%26pid%3D100008%26rk%3D1%26rkt%3D11%26sd%3D391905048325%26itm%3D382432921538%26pmt%3D1%26noa%3D0%26pg%3D2047675&_trksid=p2047675.c100008.m2219

  • @secrettreasure1388
    @secrettreasure13883 жыл бұрын

    ''''''''''' SÜPERRRRR......! THANKS YOU ,,,,,,,,,,!

  • @jeantsang4180
    @jeantsang41803 жыл бұрын

    Hi. Martyn, can you design a monophase rectangular generator of 30Hz at 1mS with a carrier frequency of 10khz ? Please let me know

  • @MartynDavies

    @MartynDavies

    3 жыл бұрын

    I'm not sure what you mean by 'monophase'?

  • @jeantsang4180

    @jeantsang4180

    3 жыл бұрын

    @@MartynDavies Hi Martyn .Thanks for replying. How can I send a snapshot of the waves to you?

  • @agent008chico
    @agent008chico5 жыл бұрын

    Does it project the frequency? Through speakers? How does it work? Forgive me but, I'm just learning about these gadgets.

  • @MartynDavies

    @MartynDavies

    5 жыл бұрын

    the output is switched trough a transistor, which gives quite a large peak-peak signal, but due to the high impedance you normally need to output through an amplifier to hear it.

  • @agent008chico

    @agent008chico

    5 жыл бұрын

    @@MartynDavies Thank you! I'm seriously considering to give it a try.

  • @akarachsrisom9349
    @akarachsrisom93494 жыл бұрын

    What is the maximum output current?

  • @MartynDavies

    @MartynDavies

    4 жыл бұрын

    I'm not sure, but it will be defined by that output transistor and its resistor

  • @thomasrey1782
    @thomasrey17826 жыл бұрын

    Hi, is there a way to set the duty cycle in 0.1% increments? Привет, есть ли способ устанавливать ширину импульса (duty cycle) с шагом 0.1% ?

  • @MartynDavies

    @MartynDavies

    6 жыл бұрын

    The documentation only talks about integer steps: 2>. set the PWM duty cycle "DXXX": set the PWM duty cycle to XXX; (001 ~ 100) Such as D050, set the PWM duty cycle is 50%

  • @thomasrey1782

    @thomasrey1782

    6 жыл бұрын

    Thank You

  • @Lesichka_Lisenok
    @Lesichka_Lisenok6 жыл бұрын

    здравствуйте. Этот модуль подойдет для настройки резонанса колебалельного контура? Частота нужна до 100 kHz

  • @MartynDavies

    @MartynDavies

    6 жыл бұрын

    The frequency goes up to 150kHz and actually gives quite a nice square wave at the higher frequencies. According to my oscilloscope, the display reads a little low (1%), so at 100kHz (indicated) my 'scope says 98.9 kHz

  • @Lesichka_Lisenok

    @Lesichka_Lisenok

    6 жыл бұрын

    Спасибо за информацию) И ещё, а выходное напряжение не меняется оно постоянно?

  • @martinn731
    @martinn7315 жыл бұрын

    Martyn, thank you for the video, is there a chance to wire this frecuency generator as to use it for a motor/electromagnet directly? any help, greatly apleciated

  • @MartynDavies

    @MartynDavies

    5 жыл бұрын

    If you look later in the video, it does have a transistor output stage, so it probably can drive a small motor. With inductive loads like motors and electromagnets it's usually a good idea to have a reverse diode across the coil, otherwise otherwise back EMF from the coil will go through the transistor and may damage it (e.g. see electronics.stackexchange.com/questions/110574/how-to-choose-a-flyback-diode-for-a-relay)

  • @marianodiaz461
    @marianodiaz461 Жыл бұрын

    hi; can you please show us how to select output 2?

  • @MartynDavies

    @MartynDavies

    Жыл бұрын

    Actually, it doesn't really have two outputs - you can see from the back of the board that both pins are connected by a track

  • @vahagnmelikyan2906
    @vahagnmelikyan29063 жыл бұрын

    Can this be used on brushless motor?

  • @MartynDavies

    @MartynDavies

    3 жыл бұрын

    I don't know much about brushless motors. I think there might be a risk of back EMF from the motor coil damaging the output transistor.

  • @ardabildik
    @ardabildik4 жыл бұрын

    you can use this with arduino?

  • @MartynDavies

    @MartynDavies

    4 жыл бұрын

    yes

  • @sneakysnake109
    @sneakysnake1096 жыл бұрын

    My AV says the linked site contains malware.

  • @MartynDavies

    @MartynDavies

    6 жыл бұрын

    thanks, I've taken the link off - icstation seem to have a problem at that location currently

  • @islammahmoudahmaed5501
    @islammahmoudahmaed55015 жыл бұрын

    How much the maximum Volt for input and output

  • @MartynDavies

    @MartynDavies

    5 жыл бұрын

    The core electronics run off 3.3V, but there is a small voltage regulator on board (you can see it on the upper right at 00:30 in the video when I turn the board over). The specifications say that the max input is 30V, but I personally don't believe that regulator will survive 30V without any kind of heatsink. I'd be reluctant to go over 12V.

  • @islammahmoudahmaed5501

    @islammahmoudahmaed5501

    5 жыл бұрын

    @@MartynDavies Thanks for quick Answer

  • @osamarawad1548
    @osamarawad15485 жыл бұрын

    hi can these devise control Mercedes fan ??

  • @MartynDavies

    @MartynDavies

    5 жыл бұрын

    I doubt if the device will survive 12V

  • @LEO-xo9cz

    @LEO-xo9cz

    4 жыл бұрын

    Possibly. This link says its rated to 30v.

  • @user-AlexGrover2024
    @user-AlexGrover20246 жыл бұрын

    Hello! And why was not it succeeded to be connected to the computer?

  • @MartynDavies

    @MartynDavies

    6 жыл бұрын

    In brief, because you need to send the command in a contiguous block of characters and you must not add CR or LF to the end of the command. I show it working in part 3 ( kzread.info/dash/bejne/Y5ufyrlrXciogKQ.html )

  • @Dancopymus
    @Dancopymus6 жыл бұрын

    Hi Martyn! You would have some clock code (arduino) for this display: arduinolearning.com/code/ht1621-6-digit-7-segment-display-example.php Thank you

  • @MartynDavies

    @MartynDavies

    6 жыл бұрын

    I'll look if I have a ht1621-based LCD display somewhere

  • @klinikmotor7081
    @klinikmotor7081 Жыл бұрын

    Apakah setingan tersimpan ketika off

  • @MartynDavies

    @MartynDavies

    Жыл бұрын

    Not that I remember

  • @diychnnl7283
    @diychnnl72834 жыл бұрын

    Странное искажение прямоугольного сигнала, в моем обзоре kzread.info/dash/bejne/m4Z4lrWHhc_geps.html , такого не наблюдал. По всей видимости у вас не согласована емкость щупа. Лайк и подписка.

  • @dfgdgfg1065
    @dfgdgfg10653 жыл бұрын

    Hello top xy a pwm 2ch

Келесі