Search found 29 matches

by Jonas
Fri Apr 17, 2015 10:11 am
Forum: Hardware Projects
Topic: Sun Tracker
Replies: 7
Views: 4657

Re: Sun Tracker

solcell12 (Small).JPG Thanks for your input. The sun finally came back after hiding behind the clouds for a week. My initial tests show that I need some kind of load. The specs on the solarpanels says max 17 volt and 1 amp output, but with no load it outputs over 20 volts even when not facing the s...
by Jonas
Sun Apr 12, 2015 4:13 pm
Forum: Hardware Projects
Topic: Sun Tracker
Replies: 7
Views: 4657

Sun Tracker

I have two 45 watts solarpanels and I want to find out the difference in watt hours if one sits facing south all day and the other is tracking the sun. The stand is ready for the solar panel. It turns two and a half rev/min at 12 volts. suntrackerstand (Small).JPG First I tried a L298n H-bridge, but...
by Jonas
Fri Apr 03, 2015 8:36 am
Forum: MicroPython pyboard
Topic: Not easily impressed...
Replies: 12
Views: 8425

Not easily impressed...

After 1-wire could read multiple devices a friend of mine finally decided to try the pyboard. I had been talking about it for weeks, saying how great it is, the speed, SD-card, external interupts, timers, hardware quadrature, I2C, spi, adc, plenty of gpio's etc, etc. He has many years of experience ...
by Jonas
Sat Mar 14, 2015 9:46 am
Forum: General Discussion and Questions
Topic: ExtInt problems
Replies: 19
Views: 6953

Re: ExtInt problems

Is it possible to calculate the maximum number of counts per second? It's not as simple as 168 Mhz divided by 4 I guess...
by Jonas
Fri Mar 13, 2015 1:39 pm
Forum: General Discussion and Questions
Topic: ExtInt problems
Replies: 19
Views: 6953

Re: ExtInt problems

Now I have tried it!
Can't get my motors to spin so fast that it freeze up, maby I'll try with my dremel :twisted:
It detects all 4 edges, giving me 4096 pulses per rev.
I will now try to connect a linear encoder to find out if it miss any pulses, I bet it wont.

Again thank you so much.
by Jonas
Mon Mar 09, 2015 10:55 pm
Forum: General Discussion and Questions
Topic: ExtInt problems
Replies: 19
Views: 6953

Re: ExtInt problems

This is great!!
Can't thank you enough for all the hard work you do.

To bad I have to wait until friday to try it out...
by Jonas
Sat Mar 07, 2015 9:12 pm
Forum: General Discussion and Questions
Topic: ExtInt problems
Replies: 19
Views: 6953

Re: ExtInt problems

I know they dont output step and dir, but while trying to learn python3, this was the best I could come up with. The code I'm using makes one channel a direction output. The variable forw is always a 1 or a 0 depending on direction, making counter1 count up or down. This is probably not the best way...
by Jonas
Sat Mar 07, 2015 9:45 am
Forum: General Discussion and Questions
Topic: ExtInt problems
Replies: 19
Views: 6953

Re: ExtInt problems

Thanks for your input! Heres the datasheet: http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Robotics/E6B2Encoders.pdf It's the incremental one i have. Not to bad quality for china made encoders. I think sparkfun sell these. I'm using one channel for direction and the other for position. Not sure its ...
by Jonas
Fri Mar 06, 2015 9:45 pm
Forum: General Discussion and Questions
Topic: ExtInt problems
Replies: 19
Views: 6953

Re: ExtInt problems

Sorry, I think I didn't explain that right. It's 1024 pulses per rev for one edge. I'm only using two edges for position, thats 2048 edges per rev, plus two more edges every time the direction changes, as I understand it. It might still be to much. 6000 rpm is absolute max, but I need to run at 3000...
by Jonas
Fri Mar 06, 2015 6:25 pm
Forum: General Discussion and Questions
Topic: ExtInt problems
Replies: 19
Views: 6953

Re: ExtInt problems

Thank you very much, this really helped alot! But now i got stuck with another problem... I'm trying to make a fast quadrature rotary encoder. I would like to read positions up to about 6000 rpm but it freeze when reaching about a 1000 rpm. I have tried the examples I found on the forum, but they ar...