Remote agricultural monitoring
By Rob Zwetsloot. Posted
Tephritid fruit flies can be a huge pest when it comes to agriculture, destroying various crops wherever they go. To try and stay ahead of any swarms, the Japanese Ministry of Agriculture, Forestry and Fisheries (MAFF) is using Raspberry Pi-powered monitoring stations.
Take back control of your online data, with Raspberry Pi.
The system was designed and programmed by Shinobu Sukenari, a MAFF senior inspector, using the following requirements: they should take a photo of the trap at least once a day and report them over the internet. Secondly, the systems should run for a month without external power. Finally, the system should be protected from the sun, wind, and rain.
Fly trapped
“We use a [trap] to capture and kill the target,” Soichi Nagasato, CEO of Mechatrax who helped develop the monitoring station, tells us. “Then we photograph the inside of the trap. The camera uses a Raspberry Pi Camera Module V2 and is connected to a Raspberry Pi 3. Other components include a power management board for intermittent operation, an LTE [4G wireless network] board, and dry batteries. The complete set of equipment is housed in a waterproof box and attached to the pest trap. The inside of the trap is photographed through a window in the waterproof box and the images are emailed to the administrator via [the internet].”

The batteries are nothing special – just eight AAs, enough to power a Sega Game Gear – and even the special case is made from an off-the-shelf, waterproof carrying case: “We use the Pelican 1060 Micro Case,” Soichi explains. “It is a transparent case that allows photography from the inside and has no openings. As a result, Pelican’s high water and weather resistance can be used as is.”
Analysis on the fly
As you may be aware, flies are pretty small. This could make it tricky for the system; however, the results were adequate.

“Although fruit flies are roughly 1 cm in size, we were able to obtain enough clear images by email to distinguish between native and target species,” Shinobu says. “This may reduce the time and effort required for field patrols and improve the frequency of checks in areas/seasons with a high risk of infestation.”
How to drive off the unwanted flies is not part of the system. It’s still a prototype, albeit one that is undergoing positive trials. However, as they are able to identify when and where they’re present more quickly and efficiently than with patrols, these methods can be more effective.
Rob is amazing. He’s also the Features Editor of Raspberry Pi Official Magazine, a hobbyist maker, cosplayer, comic book writer, and extremely modest.
Subscribe to Raspberry Pi Official Magazine
Save up to 37% off the cover price and get a FREE Raspberry Pi Pico 2 W with a subscription to Raspberry Pi Official Magazine.
More articles
Take Back Your Clound in Raspberry Pi Official Magazine 165
We’re all-too accustomed to the feling of being watched on the internet. A search for any product leads to adverts, emails, and goodness knows how many bots tracking you. It feels weird and intrusive, and we aren’t being paranoid – they really are watching us. Luckily you don’t have to reply on online services that […]
Read more →
Win one of three Raspberry Pi 4 with 3GB RAM!
Raspberry Pi 4 is still a powerful piece of kit, and this new 3GB version is great for projects and builds that need slightly more than 2GB of RAM but don’t quite need 4GB. We have three to give away and you can enter below. Win 1 of 3 Raspberry Pi 4 3GB
Read more →
Etch A Sketch CNC machine
The software controlling the Etch A Sketch logs the image, turns it into vectors, turns the vectors into G-code, then sends the G-code to the Etch A Sketch – and it was all written by AI
Read more →