Gravity is a powerful natural force that, like many other forces, humans have begun to harvest to produce electricity. Hydroelectric dams can use water, but they also use gravity to help produce electricity. The same goes for tidal generators. If you want to generate electricity by gravity, it is not difficult to do, but the amounts you need to generate enough electricity to power a home will require a source larger than a bearish channel or a small stream.
In order to generate electricity by the force of gravity you must find a source where gravity causes motion. Motion is kinetic energy, and you need to convert that into electricity. A stream flowing downhill, a waterfall, rain coming out of a downslope --- all of these are considered movement caused by gravity. Therefore, you need to find an appropriate place.
The next step is to install a turbine. These machines work similarly to a water wheel. A part of the electric turbine is rotated by a force, in this case the liquid is drawn by gravity. The spin of the wheel rotates a central axis, which in turn will turn a magnet surrounded by copper wire. This creates an electric current, which can be used immediately or stored in a battery.
The final step is to use the electricity produced. As mentioned earlier, the larger the source, the more electricity can be produced. But keep in mind that the larger the source, the larger the turbine you will need to handle it.
It can be understood in the following video: