There are two sets of rules to fly your drone under; Part 107 (commercial) and Part 101 (hobby and recreation). Part 107 is closely regulated, requiring the operator to hold a Remote Pilot certificate and comply with a number of constraints in different types of airspace.
Part 101 is also regulated, just differently. The rules on Part 101 state the aircraft must be… “operated in accordance with a community-based set of safety guidelines and within the programming of a nationwide community-based organization…” The Academy of Model Aeronautics (AMA) publishes a safety code that fits this bill, and is available at https://www.modelaircraft.org/files/105.pdf . Elements of the safety code include:
Model aircraft will not be flown:
- In a careless or reckless manner.
- At a location where model aircraft activities are prohibited.
- Not operate model aircraft while under the influence of alcohol or while using any drug
- All pilots shall avoid flying directly over unprotected people, vessels, vehicles or structures and shall avoid endangerment of life and property of others.
- A successful radio equipment ground-range check in accordance with manufacturer’s recommendations will be completed before the first flight of a new or repaired model aircraft
- … excluding takeoff and landing, no powered model may be flown outdoors closer than 25 feet to any individual, except for the pilot and the pilot’s helper(s)
- Maintain control during the entire flight, maintaining visual contact without enhancement other than by corrective lenses prescribed for the pilot
This is a summary of the rules. If you fly under Part 101, you need to read and understand all of them. Failure to comply with the community guidelines means failure to comply with the FAA, thus subjecting yourself to FAA enforcement actions.