Hi
Recently I bought LiPo batteries [dualsky eco s 1000mAh 11Wh xp10003eco]
It powers the system:
3 hc04 distance sensors
l298n bridge
arduino uno
2 n20 micro engines from polulu
Everything works fine, but I have no idea how to charge the battery because it's probably discharged (I left the system on for a few days and forgot about it) I know there are chargers for such batteries, but they are expensive.
How else could I power this system so that I could recharge it from time to time?
You need to take care of these properly or you're risking a house fire. I'm not even joking. Yes, they need to be balance charged, watched while balance charged with an appropriate charger, in a fire resistant charging bag, ideally. All available at your local RC hobby shop.
Store them at 3V/cell in a fire proof container in a shed outdoors. I use an army surplus ammo container to store mine.
A less expensive option is similar to what you have, NiMh (nickel metal hydride) and safer if you store them and forget about them. Also available from your local hobby shop. Traxxas makes something that might work (what voltage you need?)
I do not feel comfortable with you making a charger. Spend the money and get a commercial one preferably from a local store so they can show you how to use it. If you over discharge the batteries you will damage them. The charger is much more cost effective then buying batteries.