Real time clock on Pico (rev 1.4) #5819
Replies: 1 comment
-
Posted at 2017-04-24 by @gfwilliams Ahh, yeah - it's in the schematic, and there are pads for it (right at the end of the board), but it isn't fitted. You can fit one if you want, and it'll be automatically detected and used. In reality the capacitor values should be under 4pF, and are so small they can actually be left off without any real problems. You just need an The Espruino WiFi does have the crystal installed, so if you wanted then that is another option as well. Posted at 2017-04-24 by ancienthero Thanks @gfwilliams am I getting it right? btw, is there a way to check if it's successfully detected and used? Attachments: Posted at 2017-04-24 by @gfwilliams That's right, yes! Definitely try without the capacitors first, as they can be a pain to solder :) If you have a hot air gun then the crystal should be pretty easy to add though. To test, just run the following magic code more than 5 seconds after startup:
It'll say Posted at 2017-06-08 by ancienthero I have soldered
do you think this is caused by absence of 4pF capacitors? Attachments: Posted at 2017-06-09 by @gfwilliams Is your firmware up to date? I know some of the older firmwares had problems detecting the LSI. It looks good - are you sure it's soldered properly each side though? It could be the lack of capacitors, but I doubt it - I'm sure I've had boards running ok with just the crystal on its own. Posted at 2017-06-09 by ancienthero I'm 80% sure it's soldered properly - I have 2 espruinos pico soldered on both. Posted at 2017-06-09 by @gfwilliams Sorry - looks like I was wrong about that. I just swapped the
Posted at 2017-06-09 by ancienthero Thank you for checking @gfwilliams if there is going to be pico rev 1.5 soldered clock crystal and capacitors would be a good idea Posted at 2017-06-09 by @gfwilliams No problem - hope you get it sorted. If you're thinking of doing any more surface mount stuff at all I could highly recommend a hot air rework station. The chinese ones are super cheap (under $50) and seem to work fine (it's what I use). They make stuff like this really easy. The problem really is just that of cost - almost every day someone tells me they're not buying Espruino boards because they're too expensive (maybe using ESP8266 instead). I guess one option could be to do a fully loaded Pico as a second product. Maybe Micro USB, watch crystal, and one of the huge new STM32F413 chips. Posted at 2017-06-09 by ancienthero This is what I was thinking , pico rev 1.5 or pico pro if you will :)
On the other hand a low cost very basic board would be an affordable option for people with limited budgets Posted at 2017-06-09 by @gfwilliams You are basically describing an Espruino WiFi without the WiFi on it... Would one of them do you? It's not like you have to turn WiFi on: http://www.espruino.com/WiFi I think next on my list is probably a Bluetooth LE device on a 0.1" breakout board. There wouldn't be USB, but there's some fancy temperature-based drift correction in the RTC so it's actually pretty decent. Posted at 2017-06-20 by ancienthero You are right ;) When I was buying my espruinos it was only pico and board available Posted at 2017-06-28 by davidhay What about adding bluetooth LE to the Espruino WIFI? That way it could act as a 'relay' for the Puck . (the puck only needs a coin battery whereas the wifi needs something more robust)... Posted at 2017-06-28 by @gfwilliams I wonder how popular it'd be? The ideal solution there would be to add Bluetooth LE support to the ESP32 port, but that could be a bit tricky to make anything out of. You can actually attach an ESP8266 WiFi board (or even GSM!) directly to a Puck.js right now... So really I guess the most sensible option might be to come up with a board containing Puck.js's processor, but on a bare PCB that was easier to connect to? Posted at 2017-06-28 by davidhay Well, the use case is that I have a puck acting as a sensor (say a movement sensor attached to a door or temperature/light measurement) which is powered by the coin battery and lasts for months/years. I need to send the sensor results to something (a gateway) for further processing and/or recording that may require sending data to a cloud service - it will be powered by mains (or solar). That 'something' needs to have BLE to communicate with the puck as well as whatever other connectivity (eg HTTP) is needed. A raspberry pi would fit the bill quite well - but so would an espruino powered device with BLE + wifi - and be much simpler to programme! Attaching the wifi directly to the puck will require more power and negates the advantages of the long life that the puck currently enjoys... Just a thought... cheers... Posted at 2017-06-28 by @gfwilliams Ahh - what I meant is you have a second Puck.js in your gateway. An ESP8266 board like this one already has a regulator, so it's just a matter of soldering 4 wires to a Puck and you're sorted: http://www.ebay.co.uk/itm/ESP8266-ESP-12F-WiFi-Module-on-IoTBear-Adapter-Board-V2-2-with-Voltage-Regulator-/172674450571 However, a Raspberry Pi W is $10 (plus a card) and does what you need, as well as providing stuff like SSH access and being available in a fancy box. Apart from being a simpler/easier to program, a fully-loaded Espruino board is a hard sell at 3 times the price :( Posted at 2017-06-28 by davidhay Ah yes - that's true. Haven't played with the W as yet, but as you say hard to compete with that as a gateway... The puck is in a league of its own though! Posted at 2017-06-29 by @gfwilliams Yeah, they're great little things. I wish I could afford to get the prices of Espruino boards that low, but it's just a matter of volume. It costs me more to make the WiFi than the Pi W sells for - and that's even before I've shipped them back to the UK! Posted at 2017-06-29 by Wilberforce @gfwilliams Posted at 2017-06-29 by @gfwilliams Yes, absolutely. It'd be very cool if someone were able to put the time in to implement Linux's BLE API - and it'd be a big help for separating it out enough that it could be implemented on other platforms too (ESP32?). There's still a small gotcha where the networking API uses 100% CPU while waiting for requests to finish on Linux, but to be honest that could be solved pretty easily. Posted at 2017-10-03 by L0cutus are this: correct for espruino pico ? Posted at 2017-10-04 by @allObjects
(accidentally created 2 posts... so read next) Posted at 2017-10-04 by @allObjects
may be you have to put a lot of hot air next to the Pico or Wifi or Puck on a big board a thick fat ceramic resistor across + and - and sell it for... you know: where no costs on acquiring and operating, no pain and gain - impression is it called (With cars it is: Nothing can replace displacement!... except TESLA... Nothing wrong with Muscle cars - @gfwilliams, did you not do such things in your past? ...do you still do it?... but after washing the hands, fine (French) dining is an excellent (hybrid) combination. I'm amazed how much tinkering time goes into opportunity cost to try to beat something by a few £ (GPB) or $ (USD)... by standing on a giant shoulder ground without having had to pay for it... But it is still an inspiring challenge... Btw, keep your coins save in Fr (CHF)... you will get it later... (not working for me: I'm by US imposed Freedom Bank Rules and Treaties with CH (Banks?) forbidden to have as a Swiss citizen a (CHF) Bank account at a Swiss Bank in my home Country... actually it is not really the rules... I just do not have enough coins to comply with and pass the lower limit... and of course, there is no upper limit... not helpful either). I wonder why there is something like the PADI from Pine64.org for $1.99... to buy. May be it is a 8266-clone custom ordered in orbitant high numbers... but it is silent about how easy you get code done... SW development falls back into middle ages... for things it has not really to do it. The maker space is not looking for more and harder C/C++... - impressive though the 30mA for Wifi... just don't know the test/measurement conditions. I know that PINE46 kickstarter was a killer - AND (close to) KILLING - success (on the good side: PINE64 hired private China Post postal worker to get the shipment done... on the not so fun side: dead threats and police protection from inpatient pledgers got mentioned in the communication... not so fun language was the least to worry). I do not know how things moved on, but more recent is a board out - ROCK64 - that for sure cannot live anymore of less than 500mA, as one of the kill factors were in the kickstarter... Burning nKmA is just more the same of Raspberri Pi #+ (sure may be better, but not as popular... yet). As long (large) investments flow into this booming MC business until the thinning sets in due to ROI not happening, more jungle book episodes are to be expected. Not the first time in history big orgs buy the market with lots of money for an inferior product - Anyway... was a bit a ramble (and it goes on for a bit more). I stick to my few things - horses - that serve me well and leave fashion to others... they will reshow anyway... in circle cycles... Yes, once in a while I renew my wardrobe too.. but I keep my 'gatlings' and 'winchesters'... just as Swiss' have some nice blank and capable metal standing next to the hanging and neatly folded cloths. JS was declared dead by some large corporations around Y2K... and guess what: like Java and its robust VMs run under the hood, so runs JavaScript and its matured VMs as 'dessous' under many fancy, shiny client AND server 'prêt-à-porter' apparel... (Honi soit qui mal y pense!). Just to notice, Java disappeared form the client (except on power mobiles)... and even then, many just send to/create on the devices HTML with embedded JavaScript to show affordable and maintainable UX/life. Posted at 2017-10-04 by @gfwilliams @L0cutus yes, those parts look spot on. @allObjects I'm not quite sure I understand? The PADI looks pretty interesting though - it's nice if see ARM WiFi chips hitting ESP8266 prices in maker quantities. But yes, I still have the VX220 - although with everything else going on I swapped the engine back to a standard one so it gets a bit more use now :) Posted at 2017-10-04 by Wilberforce
I have a lotus Elise - which is the basis of the chassis for the vx220. Your challenge now is to retain now that you have kids! I have 2 kids and have been juggling with a 2 seater car for the last 16 years (age of eldest) Posted at 2017-10-04 by @gfwilliams we're getting a bit off topic, but... :) Nice to hear you're a Lotus guy - the Elise chassis is awesome. I couldn't afford an Elise but I couldn't be happier with the VX220. I got it over 12 years ago now (before I even met my wife), and I just can't bear to get rid of it - hence trying to make it a bit more sensible again so I can justify keeping it with a child. Have you had any luck getting a car seat in yours? :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-04-24 by ancienthero
Hi
I'm building a Programmable Timer Switch (Synchronizing time with DCF77 - from time to time) on espruino Pico so I need a quite accurate clock.
Do I need a external RTC (like DS1307 or DS3231) or internal crystal is accurate enough for a clock?
I'm quite confused because here we've got: https://www.espruino.com/Pico+Clock
but, on the other hand, there is a clock frequency crystal in schematic - which should generate very accurate time![](https://camo.githubusercontent.com/f43f584d85621879ed022dabfc8f06f03d92d5fe38eccfc5a910f77f30800f41/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f30663232313332303763393334383165616563633934343937353931383666302e706e67)
Thanks for your help
Beta Was this translation helpful? Give feedback.
All reactions