Closed andrijevicnebojsa closed 4 years ago
that looks really good soldering. You can short these pins to get better 'throw' for your IR LEDs. Once you short these pins though you can only turn ON the LEDs for ~100uS so be careful.... if you run the wrong code you can burn out all your LEDs!
As far as the data... the 12 OT 435 means the out sensor at gate 12 was triggered for 435ms. The 12 IT 510 means the IN sensor at gate 12 was triggered for 510 ms. Based on these times and the closness of the triggers the bee counter counted 1 bee coming IN. later down the serial data shows T 3 1 which means total OUT bees is 3 and total IN bees is 1. (started at the 'out' sensor and ended at the 'in' sensor means the bee was moving IN.... count 1!
First I will try sensors in the "field" for a few days without shorting pins, to see results. I will mount it on hive. I will see results and i will give you feedback. But i dont have wifi in the field so for data collecting i must use sim module, but i dont have experiance with connecting sim modul on adafruit. I am using code that you provide for testing.
how far away is your network? I've only done a little work with sim loggers. They are pretty easy, you can just send packets (bee totals) to the sim logger over serial.
This is a very simple board that logs data locally to an SD card: https://www.sparkfun.com/products/13712
On Sun, Jun 14, 2020 at 2:59 AM andrijevicnebojsa notifications@github.com wrote:
First I will try sensors in the "field" for a few days without shorting pins, to see results. I will mount it on hive. I will see results and i will give you feedback. But i dont have wifi in the field so for data collecting i must use sim module, but i dont have experiance with connecting sim modul on adafruit. I am using code that you provide for testing.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hydronics2/2019-easy-bee-counter/issues/11#issuecomment-643744540, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA3MOPAFWS2ID6VINO5FX23RWSNOXANCNFSM4N4GYIDA .
It is very far so i wil try to figure out to connect it with sim module. I have allready made arduino weather station too, and will collect data near hive (humidity (in, out), temp (in, out), UV, wind, rain. I will assemble all this within a few days just to finish code ( i dont have much experiance in arduino codeing), and i will be free to get back to you with some more questions :).
Hi, sorry for late reply, this is an update. I made some improvements on hive and a central data collection station. I have made two of your projects, one I have already shown you but the other is not working. On first I used adafruit esp32 (I only had one), for the second I had adafruit feather M0 LoRa and adafruit esp8266. I was not able to set any of them to work and I did everything according to your instructions. For LoRa, I chose adafruit feather M0 on arduino ide but it did not want to load the code, and on esp8266 I soldered the shifts register but did not want to accept the code only half of the photoresistor worked. Can you help me what i am doing wrong.
Can you provide me the code for adafruit LoRa and ESP8266.
Thank you in advance. This is how hive is looking, i will send you pictures after it is all conected, but just to know it took me a while to finish this up. I am exited and very nervous to get start measuring
hey there. Sorry for the delay. Did you get the V0 board? or the V1 board?
For the V0 board... you can make it work with the LoRa... if you swap out the shift register chips. Check this out and see if it makes sense. https://github.com/hydronics2/2019-easy-bee-counter/tree/master/instructions/archive
I have V1 board.
Hi Tomas, i find a solution, i bought another adafruit esp32 feather :).
But now i have one problem when i test gates with paper stick, it shows me in and out even if i only put papir in. Most of time it detects it like out??
Did i do something wrong?
Thank you for answer.
I also have a problem with Honey bee counter II, I can't make it work. If you allow I will ask a question here.
I can't detect the inputs and outputs with the code you set or I'm not doing something right
Do i have to soldier photoresistor B on gate1 with V2?
Do i have to soldier photoresistor B on gate1 with V2? I have two types of gates but for now none is working, can we make it work
oh wow.. you have all the bee counters....
So yes, the first data set you show (both IN and OUT counting together) is not correct. Does this example code work? Shift_Register_example_code
For Bee Counter 2... only ONE led is lit... that was part of the design.. so that looks good. Here's the example code for that PCB: https://github.com/hydronics2/Bee-counter-3.1/blob/master/shift_in_test.ino
These are the important pins... int ploadPin = 5; // ORANGE - Connects to /PL aka Parallel load aka latch pin the 165 int dataPin = 6; // BLUE - Connects to the Q7 aka MISO pin the 165 int clockPin = 7; // GREEN - Connects to the Clock pin the 165
yes, you should solder this jumper...
Shift register works fine it triggeres ok IN and OUT
I will try again counting code
For honey bee counter II I soldered VCC, tried example code it detects changes every time. Do you have counting code for HBC II?
Conections GD - GND V2 - 5V CK - 7 LD - 5 QH - 6
I saw in your posts how you connected one wire directly to the photoresist at the gate, is that necessary?
ok... for the EasyBeeCounter... that looks really good. If the shift register code is working.. as you show.. then all the hardware is good. Looking at the data again... I think it looks good. The information shown is for debugging... so even though it shows information about both gates.. it is not actually counting both gates...
Here is what the data is showing...
Gate 6:
Bee is present on the IN sensor for 405ms
Bee is present on the OUT sensor for 420ms
Because the bee was at the IN sensor first and then the OUT sensor... the bee is recorded as leaving the gate. OUT +1
Gate 11:
Bee is present on the OUT sensor for 240ms
Bee is present on the IN sensor for 240ms
Because the bee is present on the OUT sensor first and then the IN sensor... the bee is recorded as moving in through the gate. IN +1
Gate 14:
Bee is present on the OUT sensor for 375ms.
Bee is present on the IN sensor for 390ms.
Because the bee is present on the OUT sensor first and then the IN sensor... the bee is recorded as moving in through the gate. IN +1
Total count for that period is... T,1,2 Bees OUT: 1 Bees IN: 2
I'm sorry I insinuated the data was incorrect at first... now it looks correct. There are also some other tests... like the time between tripping the in and out sensors has to be reasonable... < 200ms Also the speed of the bee moving through the gates has to be reasonable... ~<600ms (I just saw an error in the code where it looks like I use a threshold of 600ms on going IN and 650ms on going OUT.)
Do you have maybe solution for Honey bee counter II? Do you have code for counting?
Do you have maybe solution for Honey bee counter II? Do you have code for counting?
Dear Mr. Hudson, Thank you for this very helpfull project, i ordered everything for both of your bee counters. I have finished this one first and i need to ask you few simple questions. Thank you in advance for answers. I use adafruit ESP32 and i had to change serial begin to 9600 I. Can i attach sim modul on this esp32 and send data on cloud couse i dont have wireless conection near. II. I am getting this results, is this ok or am i missing something