An electronic device for driving and controlling a vibrating unit for ultrasonic welding, comprising: - an electronic control unit configured to control the generation of a voltage driving signal sent to the vibrating unit to activate the vibration thereof, said driving signal being a periodic signal with a controlled frequency within a predetermined frequency range; - an inverter power block configured to generate a first voltage driving signal from a power supply potential (Vcc) in direct current and based on a voltage control signal generated by the electronic control unit; - an electronic filtering block configured to filter said first voltage driving signal received at the input, and generate said periodic driving signal with a controlled frequency at the output; said electronic filtering block being configured to provide the electronic control unit with at least one feedback signal (Sv, Si) representative of voltage and/or current values supplied to the vibrating unit, said electronic control unit generating the voltage control signal based on said at least one feedback signal (Sv, Si); said electronic device being characterized in that: said electronic filtering block is a bandpass filter having: - a first voltage transfer function in a first operating condition, said first transfer function having, as the frequency varies, an amplitude which takes a first peak value for frequency values which are smaller than a predetermined minimum operating frequency (fmin) and a second peak value for frequency values which are greater than a predetermined maximum operating frequency (fmax), - a second voltage transfer function in a second operating condition, said second transfer function having, as the frequency varies, an amplitude which takes a constant value for frequency values between said predetermined minimum operating frequency (fmin) and said predetermined maximum operating frequency (fmax). - an electronic control unit configured to control the generation of a voltage driving signal sent to the vibrating unit to activate the vibration thereof, said driving signal being a periodic signal with a controlled frequency within a predetermined frequency range; - an inverter power block configured to generate a first voltage driving signal from a power supply potential (Vcc) in direct current and based on a voltage control signal generated by the electronic control unit; - an electronic filtering block configured to filter said first voltage driving signal received at the input, and generate said periodic driving signal with a controlled frequency at the output; - a first voltage transfer function in a first operating condition, said first transfer function having, as the frequency varies, an amplitude which takes a first peak value for frequency values which are smaller than a predetermined minimum operating frequency (fmin) and a second peak value for frequency values which are greater than a predetermined maximum operating frequency (fmax), - a second voltage transfer function in a second operating condition, said second transfer function having, as the frequency varies, an amplitude which takes a constant value for frequency values between said predetermined minimum operating frequency (fmin) and said predetermined maximum operating frequency (fmax).