Fidget Spinner Tachometer, Revolution and Time Counter using Arduino and Hall effect sensor

  Рет қаралды 27,713

cbm80amiga

cbm80amiga

6 жыл бұрын

Another simple weekend project ...
Parts:
- Arduino Pro Mini
- I2C OLED display
- A3144 Hall effect sensor
- Neodymium magnet for spinner
Features:
- 4 values are displayed: rotation counter, RPM, max RPM and time of rotation
- results are kept on the display until new rotation starts
- interrupt is used for accurate measurement (pin 2, interrupt 0)
- my own old OLED lib is used with companion of fast software I2C library
- any pins can be used for SDA and SCL
- however regular hardware I2C can be used too, just set "USEHW 1"
Source code:
github.com/cbm80amiga/ssd1306...

Пікірлер: 54
@JesusCarrilification
@JesusCarrilification 5 жыл бұрын
Awesome. Thank you for sharing
@abdilahnurh1992
@abdilahnurh1992 5 жыл бұрын
thanks for your code and your idea.
@CarlosFilmagem2008
@CarlosFilmagem2008 6 жыл бұрын
Nossa Fantástico!!!! pra quem ta começando a programar com arduino, esse código ajuda bastante, alem de ter umas funções muito legais!!!!!!!!!!!!!!!!!!!!
@metalalive2006
@metalalive2006 6 жыл бұрын
good work! Have you tested A3144 with high-speed rotating object (e.g. 200 RPM) constantly for a minute ? just curious about how accurate it is . I'm looking for the most appropriate one for my robotic car project, thanks
@diegoalejandromadridcaball7332
@diegoalejandromadridcaball7332 6 жыл бұрын
hi, can you help me please. i want know the units that use this Sensor, when i measure the magnetic field i see that when the sensor unaffectedly is 512 i use the sensor hall 94E but i don't understand the units that use and how i can messure the magnetic field in tesla
@wilbertyuen4116
@wilbertyuen4116 3 жыл бұрын
Thanks for the video, it is a great starting point for my project. May I know how I may refresh the Max RPM whenever a new rotation start?
@wilbertyuen4116
@wilbertyuen4116 3 жыл бұрын
Can anyone help to answer why the time sometimes jump when the RPM starts at high speed?
@TheThalorn
@TheThalorn 5 жыл бұрын
Hi, I have a problem when I detect the magnet I have to rotate it and bring it close again that the sensor can detect the other side and after that I can detect the original side of the magnet. So I need to constantly rotate the magnet for the sersor to be able to detect it. Can you please help me?
@batticha462
@batticha462 Жыл бұрын
Hi and thank you. Can I use NJK-5002C which is normally open instead of a3144 ?
@ThePawel8888
@ThePawel8888 3 жыл бұрын
can u make a code just for the rotation counter and the timer with button for reset thanks
@Telboy-fv8ke
@Telboy-fv8ke 6 жыл бұрын
Great video, I have used your code in my Coil winder project. Can be seen on my channel in next couple of days. Thanks and keep up good work
@KaizenInventor
@KaizenInventor 5 жыл бұрын
Thats cool, Liked your channel and your video View my channel to Waiting for you!!!
@bgphysics9475
@bgphysics9475 4 жыл бұрын
I'm having Ardunio Nano and 0.96 OLED display 7 pin. How I can measure RPM of Hard Drive Motor? Can you guide me?
@TheLukinho96
@TheLukinho96 3 жыл бұрын
Hi, anyone can help me? I want to add a feature to reset the counter with a button instead of when it stops spinning. Thank you.
@deletedmediatj
@deletedmediatj 6 жыл бұрын
this is a very good project... except for the novice user, i cant install the libraries and therefore cannot run your code... just a little more effort would have made this a great tutorial... thanks for the time tho..
@pro__clean__0322
@pro__clean__0322 4 жыл бұрын
pleas can you help me with this error term8x14_font.h: No such file or directory and I can not find it on libaray.
@cbm80amiga
@cbm80amiga 4 жыл бұрын
You can find it in PropFonts on my GitHub
@nick-qw2zh
@nick-qw2zh 2 жыл бұрын
Thanks for the Video ,great base for further challenges .However when I try to Compile for Arduino Nano ,it gives an error at "i2c_start(i2cAddr
@cbm80amiga
@cbm80amiga 2 жыл бұрын
I used ID 1.6.5. Make sure you have all libraries mentioned by header files.
@nick-qw2zh
@nick-qw2zh 2 жыл бұрын
@@cbm80amiga thank you I'll see how I go
@leeharrington6438
@leeharrington6438 5 жыл бұрын
Thanks for this, just what I was looking for to hack my Ebike.
@pro__clean__0322
@pro__clean__0322 4 жыл бұрын
please can you show me how to connect seonsor with arduino. If you can, I wanna see a entire connection picture.
@cbm80amiga
@cbm80amiga 4 жыл бұрын
Sorry, I don't have any photos. Everything is described in the code and on the video.
@RicoElectrico
@RicoElectrico 6 жыл бұрын
Zrobiłłem sobie kiedyś dongla IR do telefonu (ledy podłączone przeciwsobnie L-R do jacka). Użyłem go niedawno do pomiaru prędkości spinnera, bo LED-y działają jako fotodiody. Do tego latarka oraz Audacity i mamy pomiar .. Bez magnesów, które sprawiają problem z wyważeniem :P
@cbm80amiga
@cbm80amiga 6 жыл бұрын
Ale cos pewnie musisz nakleic, bo inaczej bedzie malo dokladnie. Widzialem wiele optycznych licznikow, ale zwykle bylo zliczane przecinanie wiazki swiatla lub lasera. W rezultacie wynik byl 3 albo nawet 6x za wysoki. Dodatkowo problem ze swiatlem jesli uzyje sie zwklych diod a nie IR. Tutaj przynajmniej wiem, ze zliczane jest dokladnie to co chce, czyli "spotkanie" z magnesem. No i pradu mniej ciagnie :) Jak mi dojda w koncu TCRT5000 to sprawdze jak to zadziala.
@RicoElectrico
@RicoElectrico 6 жыл бұрын
Latarka była z góry, a sensor z dołu :> Nie chciało mi się lutować żadnego sprzętu, a przez 5 (mam taki z 5 ramionami) mogę podzielić w pamięci xD
@aknovaman
@aknovaman 6 жыл бұрын
Where do i put the h and c files?
@cbm80amiga
@cbm80amiga 6 жыл бұрын
Use Arduino IDE
@phoenix4220
@phoenix4220 5 жыл бұрын
pleas can you help me with this error SoftI2CMaster.h: No such file or directory and I can not find it on libaray.
@cbm80amiga
@cbm80amiga 5 жыл бұрын
Google this lib and download it. Or use HW I2C mode via proper define in the code.
@GGG965
@GGG965 5 жыл бұрын
@@cbm80amiga Dear Cbm80amiga! I love your video. I have a little problem. when I run the project it tells me: 'I2C_WRITE' was not declared in this scope'. Do you have any idea how to solve the problem? I have the SoftI2CMaster library and the other ones. Stokrotne dzięki !!
@consiglioiannuzzi9314
@consiglioiannuzzi9314 6 жыл бұрын
if I use #define USEHW 0 // 0 - use fast softi2c, 1 - use hw implementation on A4 / A5 why in compilation do I have these error messages? Arduino:1.8.4 (Windows XP), Scheda:"Arduino/Genuino Uno" In file included from C:\Documents and Settings\UTC\Desktop\Tachometer\Tachometer+oled\ssd1306_tacho2\ssd1306_tacho2.ino:40:0: sketch\OLED_SoftI2C.h: In member function 'uint8_t OLEDSoftI2C::printChar(uint8_t, uint8_t, uint8_t)': OLED_SoftI2C.h:85: error: 'I2C_WRITE' was not declared in this scope i2c_start(i2cAddr
@consiglioiannuzzi9314
@consiglioiannuzzi9314 6 жыл бұрын
ok, I solved, thanks anyway
@cbm80amiga
@cbm80amiga 6 жыл бұрын
You are welcome, although I had no chance to help :) If you don't have SoftI2C library installed just use USEHW=1
@FardinAmiriSF
@FardinAmiriSF 5 жыл бұрын
the library link please!
@cbm80amiga
@cbm80amiga 5 жыл бұрын
Look at my GitHub
@FardinAmiriSF
@FardinAmiriSF 5 жыл бұрын
@@cbm80amiga i cant find it can you please write it
@cbm80amiga
@cbm80amiga 5 жыл бұрын
@@FardinAmiriSF github.com/cbm80amiga/OLEDSoftI2C_SSD1306
@rosankumarsenapati3510
@rosankumarsenapati3510 5 жыл бұрын
Awesome video Can you send me the code link again please
@aaronsaldanha2815
@aaronsaldanha2815 4 жыл бұрын
drive.google.com/drive/folder...
@TipuArzuu
@TipuArzuu 4 жыл бұрын
Circuit diagram..?
@cbm80amiga
@cbm80amiga 4 жыл бұрын
There are only 2 modules, all connections are described in the video and in the code.
@TipuArzuu
@TipuArzuu 4 жыл бұрын
@@cbm80amiga Thanks a ton for replying... If i don't want to counte at rpm 30. I want to counte from beginning. then what will be the chages?
@gytispasvenskas
@gytispasvenskas 6 жыл бұрын
I like you video. Can you help me? I need count revoliutions. Only revoliutons :)
@cbm80amiga
@cbm80amiga 6 жыл бұрын
So remove printing extra values from the code :)
@gytispasvenskas
@gytispasvenskas 6 жыл бұрын
cbm80amiga can i write to you in email? I have some problems.
@cbm80amiga
@cbm80amiga 6 жыл бұрын
Just leave only "sprintf(txt,"% 5u",dispCnt); oled.printStr(38, 0, txt);" line in print section.
@gytispasvenskas
@gytispasvenskas 6 жыл бұрын
cbm80amiga i am using 16x2 with i2c lcd
@cbm80amiga
@cbm80amiga 6 жыл бұрын
So you need to use print function from your display library.
@EL90291
@EL90291 4 жыл бұрын
Please cut the music !!!
@user-et4jw7fr5i
@user-et4jw7fr5i 2 жыл бұрын
thanks for your code and your idea.
Lathe RPM Meter using magnet, hall effect sensor and LCD Screen
17:44
DIY RPM Tachometer with Arduino | RPM Counter |
2:22
Circuit Magic
Рет қаралды 152 М.
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 170 #shorts
00:27
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 54 МЛН
BUILDING A MARBLE CLOCK THAT SHOWS SECONDS - Pt4 - Bonkers it is!!
12:12
Tachometer with Hall effect sensor
2:40
Arduino-Gimmicks
Рет қаралды 15 М.
DIY Arduino based Digital Tachometer │ Revolution counter
5:15
Mr Innovative
Рет қаралды 97 М.
Arduino Tutorial: Tachometer (RPM Counter)
3:54
InterlinkKnight
Рет қаралды 269 М.
Simple Tachometer/ RPM counter using proximity sensor
3:57
Tech Ideas
Рет қаралды 100 М.
Tachometer (RPM Measurement) using IR Sensor & Arduino
6:02
How To Electronics
Рет қаралды 87 М.
Arduino RPM Counter | Speed Counter
3:33
Viral Science - The home of Creativity
Рет қаралды 40 М.
Arduino Uno Tachometer RPM using 3144 Hall Effect Sensor
13:59
Clockatronic
Рет қаралды 101 М.
I made this Tachometer using IR sensor!
2:04
THE ELECTRONIC GUY
Рет қаралды 19 М.
iOS 18 vs Samsung, Xiaomi,Tecno, Android
0:54
AndroHack
Рет қаралды 92 М.
#miniphone
0:16
Miniphone
Рет қаралды 3,6 МЛН
cute mini iphone
0:34
승비니 Seungbini
Рет қаралды 5 МЛН
Телефон в воде 🤯
0:28
FATA MORGANA
Рет қаралды 1,2 МЛН
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 869 М.
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 97 М.