Porting ADC Noise Reduction mode | Arduino Compatible Compiler for LabVIEW Discussions | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 4 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Porting ADC Noise Reduction mode
May 22, 2017
2:33 pm
Avatar
Tj
Member
Forum Posts: 3
Member Since:
May 10, 2016
sp_UserOfflineSmall Offline

 Hello 

I would like to use the ADC Noise Reduction mode on a project, has anyone tried to do this?  Is it possible?  The idea is to make a low power remote data logger for home automation.  If i understand correctly the ADC can be acquiring data at a very low power.  I can then wake up the micro fully and send data out wireless my wireless module.   I will be using the Arduino pro mini 3.3v 8MHz platform.

Thanks

May 23, 2017
2:59 pm
Avatar
Tj
Member
Forum Posts: 3
Member Since:
May 10, 2016
sp_UserOfflineSmall Offline

Actually I was thinking about my project, I could just put it to sleep as well.  But I need to wake up on a timer interrupt.  Has anybody ported some sleep functions that can do this?  

May 23, 2017
11:10 pm
Avatar
Steffan
Admin
Forum Posts: 304
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Tj said
 Hello 

I would like to use the ADC Noise Reduction mode on a project, has anyone tried to do this?  Is it possible?  The idea is to make a low power remote data logger for home automation.  If i understand correctly the ADC can be acquiring data at a very low power.  I can then wake up the micro fully and send data out wireless my wireless module.   I will be using the Arduino pro mini 3.3v 8MHz platform.

Thanks

Tj said
Actually I was thinking about my project, I could just put it to sleep as well.  But I need to wake up on a timer interrupt.  Has anybody ported some sleep functions that can do this?  

For both of these you could definitely create a custom library.  Refer to the user manual section "Porting and Arduino Library to LabVIEW" on how to do this.  I recall someone on this forum talking about a sleep function library.  Not sure if someone else has something that might work for you.  By default the included sleep API will only wake on an external pin interrupt.  For a timer interrupt wake you have to set the mode to Sleep Idle I believe to keep the clock running.

May 24, 2017
3:02 am
Avatar
David
Member
Forum Posts: 22
Member Since:
January 28, 2017
sp_UserOfflineSmall Offline

I've ported the powerDown sleep mode from the LowPower library and used in in a number of projects successfully.  Should be easy enough to port the other sleep functions if powerDown doesn't cut it.  powerDown includes some time based wakeup options.  

May 24, 2017
4:42 am
Avatar
David
Member
Forum Posts: 22
Member Since:
January 28, 2017
sp_UserOfflineSmall Offline

Here's another version with most of the additional sleep functions ported.  I didn't port the idle functions which let you selectively turn off various peripherals.  Also, the compilation was throwing some error regarding the usart3 functions and I didn't have time to look into it, so I commented out the two related lines in the cpp file.  Haven't tested any of the new functions on hardware, but it's a straightforward port.

May 31, 2017
1:08 am
Avatar
Tj
Member
Forum Posts: 3
Member Since:
May 10, 2016
sp_UserOfflineSmall Offline

Thank You David!!  I will try out the code.

Forum Timezone: UTC 0

Most Users Ever Online: 33

Currently Online:
5 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

John: 18

RTSLVU: 15

Dan6077: 11

Member Stats:

Guest Posters: 0

Members: 80

Moderators: 0

Admins: 3

Forum Stats:

Groups: 1

Forums: 2

Topics: 58

Posts: 289

Newest Members: Geraldkix, ThomasSoogs, Angelvor, AngelaMuh, Nsneilohone

Administrators: geadmin: 5, filipealtoe: 35, Steffan: 89