Search found 978 matches

by basicchip
Mon Nov 18, 2019 3:24 am
Forum: Software issues
Topic: BAUD() error message
Replies: 2
Views: 8

Re: BAUD() error message

Looking at you code you should leave the baud rate alone IF you want to run the debugger.

In your application you can set a slower baud, if faster you will need to deal with the fractional rate generator.
by basicchip
Mon Nov 18, 2019 2:59 am
Forum: Software issues
Topic: BAUD() error message
Replies: 2
Views: 8

Re: BAUD() error message

Well uart0 is already initialized to 115kbaud, and most likely the fractional rate is set as discussed elsewhere here in the forum.

So why are you resetting it anyway? It is the debug port, and changing baud makes debug difficult.
by basicchip
Sun Nov 17, 2019 2:19 am
Forum: Future products
Topic: BASIC for the micro:bit
Replies: 0
Views: 5

BASIC for the micro:bit

The microbit is a board build for educational uses and large numbers are out there now. It combines an nRF51822 with an NXP/Freescale KL26Z which supports the mbed programming protocol. We have ported our BASIC firmware to this device and it can be downloaded here. https://www.coridium.us/files/NRF5...
by basicchip
Wed Nov 13, 2019 6:10 pm
Forum: Projects
Topic: DIY WiFi Programmable Thermostat
Replies: 41
Views: 21992

Re: DIY WiFi Programmable Thermostat

And added sym-lib-table which should point to the thermo2-cache.lib

Again let me know if this loads it all for you.
by basicchip
Wed Nov 13, 2019 5:04 pm
Forum: Projects
Topic: DIY WiFi Programmable Thermostat
Replies: 41
Views: 21992

Re: DIY WiFi Programmable Thermostat

I am new to KiCAD, and was not sure what all files needed to be in a zip so you can copy my design. From what I read for thermo2, you need .pro .sch .kicad_pcb and -cache.lib I've updated those in the above post. If that is still not working for you LET ME KNOW. I would also be interested if you lay...
by basicchip
Mon Nov 11, 2019 10:07 pm
Forum: Projects
Topic: DIY WiFi Programmable Thermostat
Replies: 41
Views: 21992

Re: DIY WiFi Programmable Thermostat

OK, I've seen all the pieces work including WiFi, though in the long run I should program that in Lua and load onto the ESP8266. Right now it just checks the time from my timer server on the Coridium web site. I am not sure how I will record data there, but it could easily query a web page to read a...
by basicchip
Mon Nov 04, 2019 3:24 pm
Forum: Projects
Topic: DIY WiFi Programmable Thermostat
Replies: 41
Views: 21992

Re: DIY WiFi Programmable Thermostat

Another word on switch debounce. Turns out the code works fine for 1 switch, but the other must have some contamination, as it goes high and low while holding it down. Probably sloppy solder / cleaning technique on my part. A good reason to place switches last when building boards by hand. many swit...
by basicchip
Mon Nov 04, 2019 2:04 pm
Forum: Software issues
Topic: ArmBASIC - contact debouncing
Replies: 7
Views: 837

Re: ArmBASIC - contact debouncing

For my thermostat project, I wrote some interrupt code to debounce buttons.

viewtopic.php?f=4&t=995&start=30#p4423

Works great for 1 button, the other button was bad, will have to replace it, that bad button was changing state while I was holding it down.
by basicchip
Mon Nov 04, 2019 3:38 am
Forum: Projects
Topic: DIY WiFi Programmable Thermostat
Replies: 41
Views: 21992

Re: DIY WiFi Programmable Thermostat

And here is some initial code to put the CPU to sleep not turning off the oscillators as that cuts the connection to the PC, and need that for debugging for now ST_CTRL = 5 ' disable systick interrupt SYSCON_MAINCLKSEL = 0 'switch to IRC clock SYSCON_MAINCLKUEN = 0 ' SYSCON_MAINCLKUEN = 1 'enable sw...
by basicchip
Mon Nov 04, 2019 3:36 am
Forum: Projects
Topic: DIY WiFi Programmable Thermostat
Replies: 41
Views: 21992

Re: DIY WiFi Programmable Thermostat

And now working on the buttons, here is some code that is handling the buttons using GPIO interrupts. Basically debounce is done by ignoring changes during the debounce time. ''''''''''''''''''''''''''''''''''' UP / DOWN interrupts ''''''''''''''''''''''''''' ' ' #define DEBUG_BUTTONS #define Deboun...