• AVR Freaks

Hot!Data Logger using PIC24

Author
vzaka
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2007/11/12 12:53:26
  • Location: 0
  • Status: offline
2021/01/13 09:32:39 (permalink)
4 (1)

Data Logger using PIC24

Hello,
I have to do a data logger (using PIC24). The data  will be stored to microSD card (in .txt file) for a period of time. Later, the txt file  will be read from microSD card, and stored to USB drive.    
I am looking for a development board (possibly with PIC 24) equipped with micro SD Card connector and USB Host (type A) connector, as well as the supporting libraries.
Your help will be highly appreciated.
Thank you.
   vzaka
  
 
#1
Mysil
Super Member
  • Total Posts : 4111
  • Reward points : 0
  • Joined: 2012/07/01 04:19:50
  • Location: Norway
  • Status: offline
Re: Data Logger using PIC24 2021/01/13 10:57:30 (permalink)
5 (2)
Hi,
There is DM240018  Curiosity Board with USB:
    https://www.microchip.com/developmenttools/ProductDetails/DM240018
You may connect a Micro SD card socket to one of the microBus sockets,
see Mikro Elektronika Click  boards:   https://www.mikroe.com/microsd-click
 
Also: https://www.mikroe.com/clicker-2-for-pic24
or:   https://www.mikroe.com/mikromedia-3-pic24fj
Note, that if you want to do testing and development of USB communication with a mikroe board,
then you may need a separate Programmer/Debugger tool, like PICkit 4 or PICkit 3,
and Not rely on the bootloader in these boards.
 
Software, you may puzzle together from demo projects for the board,
and Microchip Code Configurator (MCC)  independent of what board is used.
MCC support commonly used, and newer PIC24 devices. 
If you intend to buy a development board from a 3.rd party developer,
you may check whether the microcontroller is supported by MCC.
 
Software library for FatFs filesystem, as generated by MCC is based on FatFs filesystem by ELM Chan:
http://elm-chan.org/fsw/ff/00index_e.html
 
Regards,
    Mysil
 
#2
RISC
Super Member
  • Total Posts : 5960
  • Reward points : 0
  • Status: offline
Re: Data Logger using PIC24 2021/01/13 13:12:46 (permalink)
4 (1)
Hi,
Exemple of MCC based project for filesystem using PIC18 HPC curiosity + mikroe click for uSD card
Just do the same and select your PIC24 device instead
Regards

For support make sure to check first here : http://microchipdeveloper.com
There are hundreds of PIC, AVR, SAM...which one do YOU use ?
#3
vzaka
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2007/11/12 12:53:26
  • Location: 0
  • Status: offline
Re: Data Logger using PIC24 2021/01/15 13:21:37 (permalink)
0
Hello Mysil,
 
Thank you so much for your help.
 
Note: So far,  I have used  dev. boards from mikroe, like  EasyPIC fusion v7 (very friendly), that helped me develop different projects. In my present project (read/write to USB stick) I was not able to find a ready example. 
 
Best Regards,
   vzaka
#4
vzaka
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2007/11/12 12:53:26
  • Location: 0
  • Status: offline
Re: Data Logger using PIC24 2021/01/15 13:24:13 (permalink)
0
Hello RISC,
Thank you so much for your email.
 Best Regards,
   vzaka
#5
vzaka
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2007/11/12 12:53:26
  • Location: 0
  • Status: offline
Re: Data Logger using PIC24 2021/01/21 11:16:35 (permalink)
0
Hello,
I got the DM240018 Curiosity PIC24F development board.
Please, are there examples to read/write to USB flash drive?
(I am going to use PIC24FJ128GC006)
Thank you.
vzaka
 
 
#6
Mysil
Super Member
  • Total Posts : 4111
  • Reward points : 0
  • Joined: 2012/07/01 04:19:50
  • Location: Norway
  • Status: offline
Re: Data Logger using PIC24 2021/01/29 14:42:09 (permalink)
4 (1)
Hi,
 
USB Flash drive, is a very ambitious undertaking.
You should be thorougly familiar with the microcontroller, the IDE and Compiler toolchain, and FatFS filesystem,
before messing with USB also.
 
I suggest that you do simpler experiments first, and then bring SD-card with filesystem to work first.
Why do you want USB at all? 
There are micro SD cards available up to up to 512 Gigabyte.
They may be read by another computer, just as well as a USB stick.
 
There is "USB Framework Lite" in MCC,
and USB stuff in MLA:
https://www.microchip.com/en-us/development-tools-tools-and-software/libraries-code-examples-and-more/microchip-libraries-for-applications
 
    Mysil
#7
RISC
Super Member
  • Total Posts : 5960
  • Reward points : 0
  • Status: offline
Re: Data Logger using PIC24 2021/01/29 14:48:24 (permalink)
0
Hi,
Exemple of MCC based project for FatFs filesystem using PIC24FJ128GA204 and microSD click from Mikroelektronika
Regards

For support make sure to check first here : http://microchipdeveloper.com
There are hundreds of PIC, AVR, SAM...which one do YOU use ?
#8
Jump to:
© 2021 APG vNext Commercial Version 4.5