Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 03, 2016, 04:32:57 16:32


Login with username, password and session length


Pages: [1]
Print
Author Topic: Spindler RPM counter for CNC  (Read 643 times)
0 Members and 1 Guest are viewing this topic.
sfiga69
Active Member
***
Offline Offline

Posts: 142

Thank You
-Given: 81
-Receive: 112


those who know, are those who know of not knowing


« on: August 26, 2016, 09:49:19 21:49 »

My little (puzzle) project:
RPM counter and voltmeter for spinle of my CNC.
What you need:

digispark with Attiny85
LCD 16x2 + I2C serial conveter with PCF8574
RPR359 or RPR220 Reflective sensor
few other components

in attacched
1) proteus project for rpm/voltmeter with firmware in basic
2) proteus project for sensor
3) photo

Remark:
power supply 12V.(5v are formed by digispark)
RPM count over 40000 rpm with 2,5 readings at second, displays the average of the last 3 readings
votmeter 0 to 50V.

Note:
The sensor must read 8 state changes every lap, so the reflective object is to be divided into 4 reflective and 4 non-reflective areas
« Last Edit: August 26, 2016, 11:04:40 23:04 by sfiga69 » Logged
Wizpic
Global Moderator
Hero Member
*****
Offline Offline

Posts: 976

Thank You
-Given: 197
-Receive: 344



« Reply #1 on: August 27, 2016, 12:00:48 00:00 »

Very neat little project, I was thinking for something like this for my CNC machine. has mine shows hertz
« Last Edit: August 27, 2016, 12:08:52 00:08 by Wizpic » Logged

When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
frasenci
Translator
Active Member
***
Offline Offline

Posts: 162

Thank You
-Given: 119
-Receive: 84


« Reply #2 on: September 04, 2016, 06:58:34 18:58 »

Hi , very interesting for me because I have not been able to get PCF8745/8745A working in Proteus 7.1 with Arduino I2C code for I2c That is ok running in my prototype.  I could also write code in Proton Basic for PIC.
Would yo please give me a hand , I am not able to read both of your attached project files. ( Extension .pdsprj )

Congrats on your RPM indicator, I love this kind of applications.

Thank You
Greetings
Francisco
Logged
mars01
Junior Member
**
Offline Offline

Posts: 51

Thank You
-Given: 106
-Receive: 82


« Reply #3 on: September 04, 2016, 09:58:20 21:58 »

Would yo please give me a hand , I am not able to read both of your attached project files. ( Extension .pdsprj )

In order to open the attached Proteus 8.x project files (files with extension .pdsprj), use this:
http://www.sonsivri.to/forum/index.php?topic=62554.0
Logged
sfiga69
Active Member
***
Offline Offline

Posts: 142

Thank You
-Given: 81
-Receive: 112


those who know, are those who know of not knowing


« Reply #4 on: September 04, 2016, 10:26:43 22:26 »

@frasenci
in order to work with this project, you need to install proteus 8.x and bascom avr 2.0.7.8
you can install proteus according to the reply of Mars01 and bascom from: http://www.sonsivri.to/forum/index.php?topic=41171.msg179910#new
in bascom avr you must also add the attached library
Logged
frasenci
Translator
Active Member
***
Offline Offline

Posts: 162

Thank You
-Given: 119
-Receive: 84


« Reply #5 on: September 05, 2016, 12:30:33 12:30 »

Thank you both sfiga69 and mars01 for your support.

I did not give up with the PCF8754 in Proteus 7.1 and finally got it working.
It was just a matter of the I2c adrress of the simulated part . Configuration in attached picture gives out 0x3E. ( Range = 70h - 7F )

Learned from this exercise is that I can use standard I2c-LCD code library for Arduino and simulate my prototype entirely in Proteus. ( once again )

Thank you again
Greetings
Francisco
  
  
Logged
nPn
Newbie
*
 Warned
Offline Offline

Posts: 10

Thank You
-Given: 6
-Receive: 2


« Reply #6 on: September 18, 2016, 10:22:19 22:22 »

Very nice. Have you thought about increasing resolution and closing the loop to control spindle rotational position? Then you can tap holes (probably only in soft materials since it's not a mill).
Logged
sfiga69
Active Member
***
Offline Offline

Posts: 142

Thank You
-Given: 81
-Receive: 112


those who know, are those who know of not knowing


« Reply #7 on: September 19, 2016, 11:09:05 23:09 »

Have you thought about increasing resolution and closing the loop to control spindle rotational position?

No, at the time it  is enough for me. It may be that further on I think about it
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC