MDBT42Q,2v04 run a scan every second and save wanted resault #3355
Replies: 9 comments
-
|
Posted at 2020-04-27 by @gfwilliams
"My-computer"/etc is probably using Bluetooth, not bluetooth LE
Turn on
I just answered this in one of your other posts
|
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2020-04-27 by David1234321 Great Thanks , |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2020-04-28 by @gfwilliams The nRF52 has an RTC but it's only 24 bit which means it can't store the full date (since 1970). As long as you don't do a hard reboot or unplug power it'll be fine. Yes you can add an RTC. If you just search the Espruino site for RTC you'll get http://www.espruino.com/DS3231 |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2020-04-28 by David1234321 I probelly will reboot the unit and remove the battery every few days,
you rcommand to use pullup resistors , will 10K is good for this job? also I want to connect an external storage (that way I will be sure that it save me the data even if the power is down\unplug) and this is the pinout you suggest:
again will 10K resistors will be good here also? (when I search google ,many examples for pullup 3.3V where 10K ). another question is can I use RTC and external storage at the same time on the same device? Thank you for the answers in all the posts :-) , by the way - maybe I'm working too hard and there is another solution for me ? |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2020-04-28 by @gfwilliams Yes, 10k is fine - however if you use software I2C then there is no need for pullup resistors :) It's still an idea for SD cards though (at least on CS) You don't actually need to use B3/4/5/etc - on the nRF52 chip you're using you can use any pins.
In terms of RTC, I think you are. The RTC will need its own battery or it will lose time too, so why not just permanently connect a battery to the MDBT42? Even a supercap on the 3.3v line should provide enough power for the main battery to be unplugged for a minute or so. The MDBT42Q draws so little power it seems there is no real reason to turn it off. Also you have 40k of nonvolatile storage on the MDBT42Q - so if that's enough you could avoid the SD card. SD cards can draw a lot of power when on so you may have difficult running from a small battery |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2020-04-30 by David1234321
and what do you mean by this ?
Thanks , |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2020-04-30 by @gfwilliams
This should help: http://www.espruino.com/I2C Software I2C (vs hardware) can apply internal pull-up resistors so doesn't need external ones |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2020-04-30 by David1234321 OK , I will try it and about the SD card ,
Thanks , |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2020-04-30 by @gfwilliams
Yes.
Only on the CS pin - which stops the SD card getting potentially corrupted if there's electrical noise.
I don't know. The best way is to measure it for sure when it is working. 10uA is pretty low though. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2020-04-27 by David1234321
Hello,
I want to scan and save a list of my devices around me
this is what I get :
so I see that I have 3 devices around me
I have sevral queesion about it :
but he gave me
the MDBT42Q doesn't have an internal clock? , can I add to it RTC devcie to get the time?
or maybe there is another device that already have rtc inside of it?
4.is there any way I can save the data as text\json ? and then upload it to my device ?
5. after I save the wanted devcies after scan , is there any way to know how much free space I got left on the devcie?
Thanks ,
Beta Was this translation helpful? Give feedback.
All reactions