Search found 12 matches

by alfanick
Fri Apr 24, 2015 12:49 pm
Forum: Projects
Topic: TwoWheeler
Replies: 6
Views: 5281

Re: TwoWheeler

Hello everyone – you can see balancer working in video https://www.youtube.com/watch?v=XeC996w ... e=youtu.be
by alfanick
Wed Jul 16, 2014 6:35 pm
Forum: startKIT
Topic: Using startKIT ADC and Flash in the same application
Replies: 11
Views: 23930

Re: Using startKIT ADC and Flash in the same application

Thank you Dave,
after all got it working with your code (and some refactoring within mine) :)

Amadeusz
by alfanick
Mon Jul 14, 2014 5:01 pm
Forum: startKIT
Topic: Using startKIT ADC and Flash in the same application
Replies: 11
Views: 23930

Re: Using startKIT ADC and Flash in the same application

Thank you for answer. I tried to use unsafe pointers already, I'm stuck on reconfigure_port if used. It requires using movable pointers and I cannot cast unsafe pointer to movable one, because casting pointers of resource types are forbidden... I guess the answer is to use some assembler command wh...
by alfanick
Mon Jul 14, 2014 3:53 pm
Forum: startKIT
Topic: Using startKIT ADC and Flash in the same application
Replies: 11
Views: 23930

Re: Using startKIT ADC and Flash in the same application

Thank you for answer. I tried to use unsafe pointers already, I'm stuck on reconfigure_port if used. It requires using movable pointers and I cannot cast unsafe pointer to movable one, because casting pointers of resource types are forbidden... I guess the answer is to use some assembler command whi...
by alfanick
Fri Jul 11, 2014 3:49 pm
Forum: startKIT
Topic: Using startKIT ADC and Flash in the same application
Replies: 11
Views: 23930

Re: Using startKIT ADC and Flash in the same application

I'm afraid I still need some help. What I did, I changed code of module_startkit_adc to use port pointer as trigger and added some code. The code for reconfiguring port from MISO (in port:8) to ADC trigger (out port) is implemented as below: case i_adc.trigger_from_miso(in buffered port:8 * movable ...
by alfanick
Wed Jul 09, 2014 10:31 am
Forum: startKIT
Topic: Using startKIT ADC and Flash in the same application
Replies: 11
Views: 23930

Re: Using startKIT ADC and Flash in the same application

Folknology wrote:Take a look at moveable ports and reconfigure port, there is a thread discussing this for another SPI application

BTW Xmos folk, this doesn't seem to be covered in the new XMOS Programming Guide, it would be nice if this can be added.

regards
Al
Thank you!
by alfanick
Wed Jul 09, 2014 10:05 am
Forum: startKIT
Topic: Using startKIT ADC and Flash in the same application
Replies: 11
Views: 23930

Using startKIT ADC and Flash in the same application

Hello again, my project uses ADC (via module_startkit_adc) and I would love to use builtin SPI memory in the same app (using flashlib). Both ADC and flashlib work as presumed when used separately. On startkit ADC_SAMPLE trigger port is connected to 1A so as MISO of the flash memory. XC compiler make...
by alfanick
Mon Jul 07, 2014 2:51 pm
Forum: Projects
Topic: TwoWheeler
Replies: 6
Views: 5281

Re: TwoWheeler

Not yet - still need to find proper PID coefficients. However I will upload video and pictures ASAP as it's done. Thanks for interest :)
by alfanick
Mon Jul 07, 2014 9:19 am
Forum: Projects
Topic: TwoWheeler
Replies: 6
Views: 5281

Re: TwoWheeler

Hey,
use git clone --recursive https://github.com/alfanick/2-wheeler-hw.git to clone repo with dependencies.

Amadeusz
by alfanick
Thu Jul 03, 2014 6:28 pm
Forum: Projects
Topic: TwoWheeler
Replies: 6
Views: 5281

TwoWheeler

<r>Version: 0.1<br/> Status: Alpha<br/> License: Custom Licence<br/> Download: <URL url="https://github.com/alfanick/2-wheeler-hw">https://github.com/alfanick/2-wheeler-hw</URL><br/> <br/> TwoWheeler is Self Balancing Robot implemented using XMOS startKIT platform.<br/> The robot is solving physical...