Maker Pro
Maker Pro

Wireless trigger for LEDs and buzzers

So I'm tracking my package and my arduino is at my door (or in my mailslot depending if the fed ex guy felt like squishing it through the hole) so that means I should be expecting the NRF modules soon. I'll keep you guys updated.

on another note, my C syntax for PIC's is lacking, mostly because I don't have experience with it. Would anybody be able to help, I just mean with header files and include files, I always seem to forget one
 
And just so I don't confuse anyone I'm not using the arduino to do the NRF thing.

@cyberteen. The only PICs that I have more than one of is the PIC16f627a, I hope that isn't a problem or else we will have to wait for more to be sent to me
 
So I just got my transceivers in and boy are they tiny! (banana for scale).

@cyberteen, What kind of PIC's do you have on hand? If we're going to get going with something we should probably use the same types
 

Attachments

  • transceiver.jpg
    transceiver.jpg
    144.7 KB · Views: 168
So doing some research on writing C programs for PIC's I stumbled upon a forum (it was last night and I don't remember where I found it) but someone was saying that I shouldn't use PIC16f627a's because of the limitation associated with the free version of XC8 compiler (which I'm using) and these particular PIC's. Is this something I should be worried about or would the code necessary to do what me and cyberteen plan to do be small enough to not worry about this?
 
You can get a free C compiler from Microchiop which is not limited except in optimization. Why not use it?

Bob
 
Okay so last night I did a search and cannot find any of the TONS of PIC16F627a's that I had laying around. I've ordered some more which should be here by the end of Sept. but in the meantime I only have a PIC24fxxxx (can't remember which one). But that doesn't mean that I can't start on the coding part of this
 
okay so I didn't want to pay $10 shipping for $8 in parts so I just went to the store and picked some up. The downside is they are pic16f84's so that means I need to spend an evening running through the datasheet, the upside is they support ICSP which my other ones didn't, so now I don't have to code in the ICSP myself!
 
oh I didn't know that, guess I just mis read it then. The place I bought them at charged me $11 per PIC, a bit steep if you ask me
 
You ain't kidding! You can get an equlivant PIC for < 1$ at Microchip Direct. 16F84 is obsolete, which makes it more expensive.

Bob
 
ya the PIC16f84's were the only uControllers available at this place so I was kinda forced to buy them since I made the trip that was out of my way and I didn't want to wait for shipping
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
I'd say it's underkill.

I have some stiff running on arduino using NRF24L01 (is that what you meant) that will not fit into 8k

I'd expect you're not using a networking library for these modules, but the support code can get large quickly. I'd expect you will need to be very cautious with your code (and probably code in assembler)
 
I have some stiff running on arduino using NRF24L01 (is that what you meant) that will not fit into 8k
yes that's what I meant


I'd expect you're not using a networking library for these modules, but the support code can get large quickly. I'd expect you will need to be very cautious with your code (and probably code in assembler)
I have a pic24f handy, could I use that as a memory cache? if not I may have a 64k ram chip laying around. It's also funny that you say code in asm. I assume this is because of the tidyness of asm in comparison to C.

I remember reading that today's compilers are getting better at creating more efficient C code. Would this help or do I still need a bulkier (memory) uController?

Also what you said about a networking library, do you mean like header files and include files?
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
The memory I'm talking about is the space that you need to fit your code into.

Yes, the networking library I used was in the form of header files and an include file (actually another source module, but it's the same thing).

Assembler tends (in skilled hands) to produce the smallest code.

Compilers are getting better, but if you (as a programmer) use a function that pulls in a large chunk of library code, you can easily swamp the rest of your program. You're less likely to do that in assembler.
 
Top