By the way, you seem to have a very deep well!
From the get-go I assumed that this is a commercial endeavor for you, but I must say that I'm surprised. I wouldn't think that equine teeth grinding was that large of a market.
Chris
Hi Chris
The well is simply a bit of cash I have burning away in a PAYPAL account. The dream would be for this to become a commercial venture, however as always once I start something I also become very interested in the subject. You never stop learning and television isn't something I enjoy doing in my spare time!
The equine dental market is small as you've guessed, but its also a developing market and getting bigger each year. I for one make my living from horses teeth and in answer to your previous question about the need for brushless motors, yes, horses are skittish but in the right hands they can be made confident and at ease with the loudest of motors. I currently use a 240V motor that sounds like a jack hammer, the horses are never bothered.
I descided to use a brushless motor as I thought that only brushless motors with HAL sensors could have torque/current control. I now think that this is not true??
I will await your instructions as what to order and look forward to continuing the build with your help.
I did get this bit of code and programmed a second chip.
main: ; make a label called ‚main
readadc C.1,b0 ; read ADC1 into variable b0
if b0 > 90 then top ; if b0 > 90 then do top
if b0 < 90 then bot ; if b0 < 90 then do bot
low B.0 ; else switch off 0
low B.4 ; and switch off 4
goto main ; jump back to the start
top: ; make a label
high B.0 ; switch on 0
low B.4 ; switch off 4
goto main ; jump back to start
bot: ; make a label
high B.4 ; switch on 4
low B.0 ; switch off 0
goto main ; jump back to start
The code turns on or off two LED's if the ouput from your circuit is below or above a certain voltage ie PIN 7. I was just trying to learn how all this works. However I dont understand how the input is calibrated. I simply chose < 90 or > 90 as its roughly half way. Is there any chance you can explain this to me I want the leds to light, bot if its less than 2.5v or top if its more 2.5v. If you dont understand what Im getting at here, don't worry, Ill wait to figure it out as you help me with the additional code.
I guessed that if I can understand how the programme and chip read the data into c.1 then I could in theory use the second chip to run a display. This would be a simple method and no where near as efficient as the method you mentioned but at least I would be able to get to grips with the basic theory.
Regards
Justin