New Pro Mini running slow

OK... project finished, unforeseen back EMF occurred and killed the Pro Mini.

So, quick rewire, and dug out a spare Pro-mini. Checked it, 16mHz, 5v... fine. Had a nightmare changing it out as the pcb was buried in the project.

Fired it up and it all runs half speed :hot_face:
So, I can only assume that somehow I have ended up with an 8Mhz? (I never buy those).
It's set to 16Mhz in the IDE, so I imagine I am stuffed then. Don't have any more to hand.

Tired of this project, it's being a real problem child

What markings are on the crystal?

Check the fuses. The internal RC 8 MHz oscillator may be selected, or worse, the CKDIV8 fuse.

Well (wrongly or rightly), I just programmed it using the 8Mhz 3.3v setting.

Crystal? I will have to try and get back in there with my phone and take a close-up snap of the PCB.
Not easy to see (didn't occur to me that it would need checking before re-installing)

Check the fuses?

Same project....

The Pro-mini operates a couple of relays on a timer. One of these relays is switching a 24v valve.
This 24v is achieved through a voltage booster board and works fine. It's pulling 0.42A when on.

I didn't notice the suppression capacitor had come off the valve plug, and that EMF killed the last processor.
I have added further suppression earlier on as well.

But... this was never meant to operate such a large valve. The original was a small 6v affair.
The problem is now that the PP3 battery that supplies the project isn't up to that load.

If I run it off the power pack, then all is fine, but the 9v PP3 battery is all that could be fitted in the small enclosure, and the PP3 holder is integral to the enclosure design, so a larger battery is not really possible (without an entire rebuild).

Currently, the processor reboots due to the load kicking in.
I tried a large capacitor across the processor supply but its the battery that is 'dropping out'.

Any ideas? Large capacitor across the supply lines?

Hi,
Pout= Vout x Iout
24V at 0.42A = 10W power draw.

DC-DC Converter

Input current from PP3..

Iin = P / Vin
Iin= 10/9 = 1.1A

There is no way a PP3, smoke detector battery will work reliably with 1.1A draw when the solenoid is activated.

Did you do any calculations?

Do you have a DMM?

Tom... :grinning: :+1: :coffee: :australia:

No... 9v was never the intended supply (for this exact reason). But, space became an issue and the original valve was a small 6v coffee machine style valve that worked OK.

But now I need the much bigger valve. I will just have to somehow squeeze a better battery into the space available. Real shame, as the enclosure has a built-in PP3 holder, but that clearly doesn't cut the mustard.

I will look for a very small 12v Nicad or Lead acid I think

edit...

Just had a dig around the workshop and found some NiMH Rechargeable AA Batteries, 1.2v, 2.6Ah each.
8x of those might work? Hmm

Just because you bought "16MHz" boards, does not mean you actually GOT 16MHz boards. Several times I've paid for 16MHz, and gotten 8MHz, or paid for 328's, and gotten '168s.

Most likely, your vendor screwed you.

Yep... I think I got fiddled

Anyway, seems to run OK at 8Mhz. It's not speed critical, as long as the millis are running at the right speed (which they now appear to be)

Hi,
If you are going to a bigger valve and the power requirements are going to be greater, then redesign your enclosure.
Is there a reason it has to be small and battery powered?
What are the specs/data on the valves that you are using?
Can you please post a link(s) so we can better advise you?

A circuit diagram of your existing circuit would also help.
Can you post jpg EXPORT of your PCB?

Thanks.. Tom... :grinning: :+1: :coffee: :australia:

Hi Tom.

Enclosure is an existing one built into a 'rig'. Changing it out would be a real pain, as it has a control panel etc. It would basically be a rebuild from scratch (That I really want to avoid).

Battery powered because it is in a shed where there is no power. It was all fine with the small valve, but time revealed it wasn't man enough.

Sec of the valve? It's one of those... found it in the shed valves. 24v DC 1/2" bore. Not ideal electrical spec but fits perfectly.

No PCB - stripboard build many moons ago.

The whole setup works fine off a power supply on an extension lead, but it cannot stay like that.

I thought I had cracked it as I found 2x 6v NimH battery packs lying in a box in the workshop.
I 'just' managed to squeeze them into the enclosure and wire them up in series for 12v.
Each pack measured 5.4v which was OK as I have no idea where they came from or when last charged. Each pack is 2200mAh.

But... fired it up and it didn't take the load at all, just browned out, so I can only assume the batteries are not any good. Plus I don't actually have a charger for Nimh and was going to have a Google for a simple 12v Nimh charger.

This may have to be either a rip out and start again, or buy a new battery pack + charger (if I can find one).

Anyone know of a basic trickle charge circuit for Nimh 12x 1.2v @ 2200mAh?

OK, found a simple Nimh charger based on a 7805... I have all the parts. 'll knock that up later today and charge these batteries.
If that doesn't fix the issue, then it's a rip-out and rebuild

Hi,
What exactly is your project?
Its in a "rig"!!!! and it needs to be battery powered.

Thanks.. Tom... :grinning: :+1: :coffee: :australia:

It controls a rain water valve (for irrigation) in a remote pump house in Spain - high up on a mountain. No power anywhere near.

I have made a Nimh charger this afternoon and after a quick recharge, the 2200mAh 12v Nimh batteries I found work well.
I will now use that recharging ability to maybe keep them topped up using a solar panel charge system.

Hi,

I would say a very good reason to redesign, especially if you originally wanted to use a PP3 battery.

Good Luck... Tom.... :grinning: :+1: :australia: :coffee:

Built this charger circuit (found online) for these Nimh batteries (12v 2200Ah). Checked circuit all through all through and seems fine, but the LED doesn't light?

Suggestions? Not suitable?

automatic-nimh-battery-charger-circuit