Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,162,147 members, 7,849,575 topics. Date: Tuesday, 04 June 2024 at 02:32 AM |
Nairaland Forum / Princejude's Profile / Princejude's Posts
(1) (2) (3) (4) (5) (6) (7) (8) ... (13) (14) (15) (16) (17) (18) (19) (20) (of 20 pages)
Politics / Re: Bomb Blast Averted In Kaduna by princejude(m): 2:04pm On Jun 08, 2013 |
boko are rams: U should have snapped some pics to validate ur story.I am sorry,I don't believe ur story It is true bro ! See pictures here: http://www.thisdaylive.com/articles/bomb-scare-in-kaduna/149763/ http://www.ngrguardiannews.com/index.php?option=com_content&view=article&id=123960:bomb-blast-averted-in-kaduna&catid=1:national&Itemid=559 http://www.punchng.com/news/police-avert-fresh-bomb-attack-in-kaduna/ Reporting live and direct from Kd city... |
Programming / Re: Microcontrollers by princejude(m): 4:15pm On Jun 07, 2013 |
Good Boi: I am currently learning C++ and am interested in microcontrollers and embedded system, I want to know if C++ is sufficient for microcontroller programming, as in without c If you have any C++ compiler that can convert your C++ code to HEX file then you can use it for microcontrollers. I have not seen such compiler. Note that C++ and C are very similar, so if you know how to code with C++ you can easily switch to embedded C. Download the ebooks I have uploaded in this thread and study them and you will see their similarities. Also search for other microcontroller based ebooks that will help you to learn C. |
Programming / Re: Microcontrollers by princejude(m): 2:24am On Jun 06, 2013 |
hopefullman: @princejude What's d diff btwn pickit2 & pickit3.thank uPickit3 is the elder brother to Pickit2. It is the latest programmer from microchip. The major difference is that PICkit3 can program most of the current PICs and dsPICs while PICkit2 may not program all the current PICs and dsPICs. |
Programming / CNC Programming by princejude(m): 3:25am On May 27, 2013 |
Please do we have cnc programmers in the house? I will like us to share some ideas so that we can learn from others. I am new in CNC programming but from my little research it seems like it will help in PCB fabrication. I have been into PCB design for years but we always do the fabrication overseas. I will like to start the automated fabrication in Nigeria. I have been searching on where and how to buy a cnc machine. The most positive result I have found is proxxon mf70 milling machine plus cnc conversion kit. If you can combine the two,then you are on the right path. I have found where to buy mf70 (around 95k) in Lagos but I have not seen the cnc conversion kit. Pls has anyone use the mf70 and conversion kit? I have started reading about cnc g-code. Note: CNC machine means Computer Numerical Control Machine. |
Programming / Re: C Code Help: How Do I Go About This? (pointer To Pointer) by princejude(m): 3:08pm On May 19, 2013 |
Which compiler are you using ? It is also better to post a complete, compileable and simple code. |
Programming / Re: Microcontrollers by princejude(m): 1:53pm On May 19, 2013 |
cogitoErgo: How did you get their kit ? Did you go to their office or you buy it online (and they send it to you). If it was online,how many days did it take you to get the kit after payment? And where is your location (State). |
Programming / Re: Microcontrollers by princejude(m): 1:41pm On May 19, 2013 |
From the CD, open the PICKIT2 USER MANUAL, turn to page 27 to see the circuit below: Wire the circuit in your bread board connect your programmer and you are good to go. [s]Or you can buy their new dev. kit. It has the 8-PIN chip socket[/s] |
Programming / Re: Microcontrollers by princejude(m): 1:11pm On May 17, 2013 |
cogitoErgo: It is called SIL Header (ie. Single-In-Line Header Connector) The one with pins is the male while The one with holes is female |
Programming / Re: Microcontrollers by princejude(m): 9:51pm On May 16, 2013 |
cogitoErgo: @princejude, assuming i want multiple analog inputs, can i do this?setup_adc_ports(sAN0, sAN1) No it won't work like that, do is this way: setup_adc_ports(sAN0|sAN1); and corresponding channelsset_adc_channels(0, 1) No, you set each channel individually as shown below: set_adc_channel(0); or set_adc_channel(1); Have you download the CCS manual I posted the link earlier. If yes read the ADC section. Alternatively, you can also do the adc setups from the pic wizard. |
Programming / Re: Microcontrollers by princejude(m): 4:55pm On May 16, 2013 |
cogitoErgo: Proteus is a simulator that can be used to simulate your code without any hardware or kit(ok maybe it was not suppose to be included in your pack because you can use your kit to test your codes). The 128x64 Graphic LCD was not included (optional)because of its cost(around N4000).So if your really want to use it, you can buy one and fix it on its connector in your development kit. Sorry we are just trying to reduce the price of the kits so that it can be affordable for students. Note the N15000 you paid was for both the PIC development kit and the ISCP programmer. |
Programming / Re: Microcontrollers by princejude(m): 11:41am On May 16, 2013 |
cogitoErgo: Did you see the Pic Development Kit user manual and software (CCS C Compiler, MPLAB, Proteus) in the CD? If yes, try all the sample codes |
Programming / Re: Microcontrollers by princejude(m): 6:49am On May 16, 2013 |
cogitoErgo: Which of the kits ? The one with on-board ISP programmer or the one without ? The kits have a user manual that explains how to use them in a CD with some sample codes. Study the manual, there is a jumper used to enable the 7-segment and other peripherals. Maybe you only enabled the LEDs. Note that the LEDs and 7-segments are connected on the same port. |
Programming / Re: Microcontrollers by princejude(m): 2:38am On May 16, 2013 |
cogitoErgo: @princejude, I tried example 5 but instead of the 7-segment to come on, it was the led that was flashing!Are you testing it with a development kit or with a soldered(vero)board? If you are using dev. kit can you post the link to the kit. We will like to know about your hardware. |
Programming / Re: Microcontrollers by princejude(m): 2:31am On May 16, 2013 |
cogitoErgo: @princejude or anybody, please how many times can I erase and re-write PIC16f887? Please do not refer me to the datasheet, just give me the answer here! Thanks You can erase and re-write more than a million times |
Programming / Re: Microcontrollers by princejude(m): 5:10am On May 14, 2013 |
. |
Programming / Re: Microcontrollers by princejude(m): 5:04am On May 14, 2013 |
EXAMPLE 6: 00 - 99 Counter
|
Programming / Re: Microcontrollers by princejude(m): 4:42am On May 14, 2013 |
SEVEN SEGMENT DISPLAY The segments in a 7-segment display are arranged to form a single digit from 0 to F as shown in the figure below: Segments are marked with non-capital letters: a, b, c, d, e, f, g and dp, where dp is the decimal point. The 8 LEDs inside each display can be arranged with a common cathode or common anode. With a common cathode display, the common cathode must be connected to the 0V rail and the LEDs are turned on with a logic one. Common anode displays must have the common anode connected to the +5V rail. The segments are turned on with a logic zero. To display these numbers, the following LED segments will be ON 0 = a,b,c,d,e,f 1 = b,c 2 = a,b,d,e,g 3 = a,b,c,d,g 4 = b,c,f,g 5 = a,c,d,f,g 6 = a,c,d,e,f,g 7 = a,b,c 8 = a,b,c,d,e,f,g 9 = a,b,c,f,g Digit coding for Common Cathode Digit coding for common anode Example 5: 0 to 9 Counter This sample counts from 0 to 9 on a single digit common anode 7-segment display
|
Programming / Re: Microcontrollers by princejude(m): 4:04am On May 14, 2013 |
Example 4: Moving LEDs This is another simple LED example that will ON eight LEDs sequentially(one at a time). The LEDs were connected to PORTB
|
Programming / Re: Microcontrollers by princejude(m): 3:40am On May 14, 2013 |
This Embedded System Design Magazine might help someone http://www.facebook.com/notes/microscale-embedded/new-release-embedded-systems-magazine/531179500262381 |
Programming / Re: Microcontrollers by princejude(m): 6:29am On May 13, 2013 |
usisky: welldone for ur input, we want more contribution to this thread, let it not be one man show because am a bit busy with other programming stuffs like FPGA, ARM and PSoC |
Programming / Re: Microcontrollers by princejude(m): 3:11pm On May 12, 2013 |
cogitoErgo: I adjusted VR2 on the development board and that actually calibrated the temperature reading! But please Princejude, how did they get that conversion formular (i.e, temp=5.00*temp_adc*100.00/1023.00)? That formula was used to convert the ADC value to temperature in degree Celcius Note that the ADC module was configured to 10 bits (#device ADC=10) 10 bits = 210 = 1024 but you are counting from zero,0 to 1023 |
Programming / Re: Microcontrollers by princejude(m): 2:34pm On May 12, 2013 |
cogitoErgo: Sorry for late reply, I was busy with office work. cogitoErgo: Check this second line of your code:
|
Programming / Re: Microcontrollers by princejude(m): 10:26pm On May 11, 2013 |
To transfer your hex file(compiled ccs code)to your MCU, you will need the following: 1. PIC Programmer (i.e, Pickit2 or Pickit3 or ICD2 or any)Note: Pickit2 (cloned) N5500 and Pickit3 N7000 If you are using pickit2 or pikit3, install its software in your PC. 2. PIC Development kit with PI16F887 3. And of course a computer system. I have explained how to program an MCU in my earlier post in this thread. Check from first page. |
Programming / Re: Microcontrollers by princejude(m): 11:45am On May 06, 2013 |
cogitoErgo:setup_adc(ADC_CLOCK_DIV_8); Hello CogitoErgo, Have you installed the CCS C Compiler in your PC? If yes, open the 16f887.h file from the installation location: C/Program Files/PICC/Devices then scroll down to ADC Function setups, you will see the ADC registers definition as shown below:
thats where the small 's' is from. Note that NOT ALL PIC MCUs use the small 's'. For example the ADC register definition for 16F877A is below
So is important to look at the header file of any chip before you can use its ADC module |
Programming / Re: Microcontrollers by princejude(m): 8:41am On Apr 29, 2013 |
cogitoErgo: NOLVP => NO Low Voltage Programming Well done |
Programming / Re: Microcontrollers by princejude(m): 5:36pm On Apr 24, 2013 |
cogitoErgo:When you are ready for the PIC development kit, check this link http://www.jutronix.com They have good development kits with user manual which include many sample codes for beginners. |
Programming / Re: Microcontrollers by princejude(m): 11:42am On Apr 22, 2013 |
cogitoErgo: You can also declare 8-bit interger as int8 in ccs c Example of some data types are:
You can download this ccs c user manual for more info: http://www.ccsinfo.com/downloads/ccs_c_manual.pdf |
Programming / Re: Microcontrollers by princejude(m): 1:55pm On Apr 15, 2013 |
hopefullman: ...d code is jst lyk chinese 2me.i jst wish 2 be lyk u. Did you download the two ebooks I posted their links ? if yes, study them and you will understand the trick |
Programming / Re: Microcontrollers by princejude(m): 1:05pm On Apr 15, 2013 |
. |
Programming / Re: Microcontrollers by princejude(m): 2:11pm On Apr 09, 2013 |
hoodboi: Hw did u knw how to work wit d sensor nd oda components I will always study there datasheets. hoodboi: hw did u knw d level to set for d battery I used the internal Analog to Digital Converter module of the chip to sense the battery level ans also used a variable resistor to calibrate the battery level. |
Programming / Re: Microcontrollers by princejude(m): 2:01pm On Apr 09, 2013 |
NeoTesla: @princejude: Nice work. Very readable code. BTW how did you ensure the blocks were indented. The last time I tried to indent code on nairaland I was unsucessful. Use the code icon labelled "#" Before you type the code you want to post,Click the "#" icon and type the code between and. [.code] type your code here [./code] |
Science/Technology / Re: Cost Of Different Sources Of Electricity In Nigeria by princejude(m): 3:26pm On Apr 08, 2013 |
Barcholder: Solar panel (with its charge controller) is just a battery charger. You cannot use it alone without a battery. And battery is always GIGO(Garbage-In-Garbage-Out) in other word,you can never take more than what you put inside the battery. |
(1) (2) (3) (4) (5) (6) (7) (8) ... (13) (14) (15) (16) (17) (18) (19) (20) (of 20 pages)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 65 |