Search found 5 matches

by kjarke
Fri Jul 24, 2015 12:46 am
Forum: General Discussion and Questions
Topic: Float numbers in interrupt handler
Replies: 4
Views: 1733

Re: Float numbers in interrupt handler

I'm aware that I can't assign memory within an interrupt handler. It just looks like I can't do any calculations with float numbers inside an interrupt handler. Even if the variables have been declared outside of the interrupt handler. I did another simple test. If I add 0.5 to the float number I ge...
by kjarke
Thu Jul 23, 2015 4:25 am
Forum: General Discussion and Questions
Topic: Float numbers in interrupt handler
Replies: 4
Views: 1733

Float numbers in interrupt handler

I'm building a small robot driven by stepper motors. To implement smooth starting and stopping I'm trying to program a simple motion controller. The code is executed in regular intervals as a timer interrupt handler. It all works well if all numbers inside the interrupt handler are int. I wasn't abl...
by kjarke
Wed Jun 24, 2015 11:11 pm
Forum: MicroPython pyboard
Topic: PYB and CC3000
Replies: 2
Views: 1699

Re: PYB and CC3000

I had the same 'failed to init CC3000 module' error after a soft reset. The solution was to power the board down completely and reboot. That worked for me. The CC3000 connected to my network, got an ip address but as soon I tried to open sockets OS error codes appeared. So far I haven't had success ...
by kjarke
Wed Jun 24, 2015 4:22 am
Forum: Other Boards
Topic: STM32F4Discovery I2C
Replies: 8
Views: 3799

STM32F4Discovery I2C

I want to read the VL6180 proximity sensor every time I press the user button on the discovery board. I verified that I2C is working, configuring and reading the VL6180 works and the interrupt works as well. I every time I press the button I get "Uncaught exception in ExtInt interrupt handler line 0...
by kjarke
Wed Jun 17, 2015 12:44 am
Forum: MicroPython pyboard
Topic: Network on STM32F4Discovery
Replies: 6
Views: 3780

Re: Network on STM32F4Discovery

Has anybody got the a network on the discovery board with the CC3000 working? I can connect to my wifi network and I get an IP address. The IP address looks real since the router also lists it under attached devices with matching MAC address. I think I can also create a socket but when I try bind or...