Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

My first MPLabX

2 posters

Go down  Message [Page 1 of 1]

1My first MPLabX Empty My first MPLabX Fri Apr 16, 2021 8:59 pm

Mistral



My first MPLabX Pic16f10

Took me a long time to get it installed and working, maybe 8 hours or so, although I already had some experience with Visual Studio.

These two video's and webpages below from Circuit Digest gave imo the best guide to make it run. For tools in stead of Pickit3 I used simulator, or left it open, I am not sure.
https://www.youtube.com/watch?v=NDpKn3vMmGA&t=302s
https://www.youtube.com/watch?v=W3zxOX99his
https://circuitdigest.com/microcontroller-projects/writing-your-first-pic-microcontroller-program

Huge program are these MPLab and its compiler XC8, they are about 8.5 and 1.5 GB respectively.

Well, anyway, maybe somebody wants to start with this too and hopefully this post is helpfull.

Edit: This video shows the same in the first 7.5 minutes.
https://www.youtube.com/watch?v=e4Q2dYVedPY&list=PL0qXAzdtOuvQZXqtr4quepG7lr3rgzZD-

Edit2: Github with more projects and hex-files
https://github.com/Alectus/uChip-controller-simulations



Last edited by Mistral on Mon Apr 19, 2021 10:03 am; edited 2 times in total

arcachofo likes this post

2My first MPLabX Empty Re: My first MPLabX Sat Apr 17, 2021 7:16 pm

Mistral



This MPLab is showing often a 'this project is empty' barrier and quite a few times it will not build but pressing the build hammer a few times and re-opening the project suddenly it will. That's why it took me 8 hours to get it started.

I follow the CD-tutorial video's, CD stands for Circuit Digest, this is no.4
https://www.youtube.com/watch?v=DpyEBl5viOI
webpage
https://circuitdigest.com/microcontroller-projects/led-blinking-sequence-with-pic16f877a
shematic
https://circuitdigest.com/fullimage?i=circuitdiagram_mic/LED-blinking-squence-using-PIC-microcontroller-circuit-diagram.gif

So far it's going good, although with above mentioned trip wires.
I've done pretty much in Simulide with Arduino before but not with Pics.
I have a few beginner questions

My first MPLabX Cd4-1610

Why is it showing File type not supported? 
Why is the Mclr having no effect
And why are the Osc pins not blue like Vcc and Gnd when there is no oscillator component in Simulide?  scratch
simu-file
https://github.com/Alectus/Dump-sharing/blob/main/CD4-16F877A-LedBlinkSeq.simu

3My first MPLabX Empty Re: My first MPLabX Sat Apr 17, 2021 8:41 pm

arcachofo

arcachofo

Why is it showing File type not supported?
You probably clicked in"Compile" button.
For hex files you can only upload.

Why is the Mclr having no effect
You are rignt, there is a problem here.
I will have a look.

4My first MPLabX Empty Re: My first MPLabX Sat Apr 17, 2021 11:21 pm

Mistral



Thank you, indeed I must have pressed Verify in stead of Upload.
I am not sure if I'll continue with these uC's, I am not an allrounder like you that knows about electronics and programming. Tried to compile CD5 
https://circuitdigest.com/microcontroller-projects/pic-microcontroller-timer-tutorial
and took me 1.5 hour to find out that this line
void interrupt timer_isr()

is somehow not accepted anymore and should be replaced by this

void __interrupt () timer_isr()
https://www.microchip.com/forums/m/tm.aspx?m=1058706

5My first MPLabX Empty Re: My first MPLabX Sat Apr 17, 2021 11:47 pm

arcachofo

arcachofo

AVRs are very easy thanks to Arduino.
I remember a project trying to do the same with PICs named Pinguino (based in SDCC), but as far as I know it never was very successful.

I used SDCC compiler for PICs, but it is not as easy as using Arduino, you need to get into the compiler details and there are not many libraries, specially for 14 bit PICs.

Now I have no time to work in my own projects, so I'm a bit outdated with all this stuff.
Maybe there are new things out there...

6My first MPLabX Empty Re: My first MPLabX Sun Apr 18, 2021 3:06 pm

Mistral



Maybe there are new things out there...

Yes, code language changes over time, next time I'll give myself an hour or so and when it still not builds I skip it and move on. Thanks for the search words pinguino and SDCC, it opens up lots of projects. I didn't download it, my laptop is getting saturated with only 15 out of 118 Gbyte left. 
The previous CD5 simulation is working like in the video. The video is messy but at 08:25 you can see a better demonstration. 
I tried CD6 today and it compiled the first time  Shocked  and is working on Simulide. 
Probably it's just the code that makes it compile at once but I did something different as well. When Mplab is opened you get al the previous projects listed, before you make a new one, like this

My first MPLabX Cd6-1610

With a right-click and 'close' I removed them. For Tool I kept it to None but it doesn't seem to make a difference wether you choose Simulator. Need to try some more to be certain.

This is the simulation

My first MPLabX Cd6-1611

using this hex-file
Code:
:020000040000FA
:100000000A128A11FC2F00308A000408840A820731
:10001000003443346934723463347534693474346D
:100020002034533469346D3475346C344934443479
:100030004534003457344F3452344B3449344E3401
:0800400047342134213400345F
:100C9A0000300A128A115A260A128A1101300A12DF
:100CAA008A115A260A128A110800F30083120313C2
:100CBA00081173080A128A1174260A128A118312F9
:100CCA00031388151A30F200F830F100F10B6B2E7D
:100CDA00F20B6B2E00008312031388110800F00038
:100CEA00701C782E792E7D2E831203130816802EFF
:100CFA00831203130812F01C832E842E862E881664
:100D0A00872E8812701D8A2E8B2E8D2E08178E2EF6
:100D1A000813F01D912E922E942E8817952E881363
:100D2A000800FB00F901FA01AD2E79087B0784005F
:100D3A000A128A1103200A128A110A128A119D279D
:100D4A000A128A110130F9070318FA0A0030FA0761
:100D5A0079087B0784000A128A1103200A128A1171
:100D6A00003A031DB92EBA2E9A2E080083160313D1
:100D7A0088010A128A1148270A128A110A128A114C
:100D8A004D260A128A11F401F40A01300A128A1154
:100D9A00F6260A128A1101300A128A1196260A12B6
:100DAA008A11F401F40A02300A128A11F6260A128A
:100DBA008A1112300A128A1196260A128A113330BF
:100DCA0083120313A200BB30A100DF30A000A00BE6
:100DDA00EC2EA10BEC2EA20BEC2EC32E0A128A11BA
:100DEA000028F7007703031DFB2EFC2E1F2F740823
:100DFA007F3EF5007508FA007A08F5000430031002
:100E0A00F50CFF3E031D042F7508F6007608F8005E
:100E1A007A080F39F5007508F90078080A128A115C
:100E2A005A260A128A1179080A128A115A260A12AD
:100E3A008A11472F02307706031D242F252F472FAB
:100E4A007408BF3EF5007508FA007A08F500043008
:100E5A000310F50CFF3E031D2D2F7508F6007608CA
:100E6A00F8007A080F39F5007508F90078080A12AF
:100E7A008A115A260A128A1179080A128A115A26DE
:100E8A000A128A11080000300A128A1174260A12FC
:100E9A008A1103300A128A115A260A128A1121303B
:100EAA00F5007630F400F40B582FF50B582F00009C
:100EBA0003300A128A115A260A128A114830F5009A
:100ECA006C30F400F40B672FF50B672F000003302A
:100EDA000A128A115A260A128A1102300A128A1131
:100EEA005A260A128A1102300A128A115A260A123C
:100EFA008A1108300A128A115A260A128A110030F7
:100F0A000A128A115A260A128A110C300A128A11F6
:100F1A005A260A128A1100300A128A115A260A120D
:100F2A008A1106300A128A115A260A128A110800F0
:100F3A00F80078080F39F1007108F2007808F039E2
:100F4A00F1007108F3008312031308157308F10006
:100F5A0004300310F10CFF3E031DAE2F71080A1274
:100F6A008A1174260A128A118312031388153330E0
:100F7A00F4008230F5000000FF30F4070318F50A88
:100F8A00FF30F5077508803AFF0080307F02031DA5
:100F9A00D02F01307402031CD32FD42FC02F8312F9
:100FAA000313881172080A128A1174260A128A1106
:100FBA008312031388153330F6008230F7000000DD
:100FCA00FF30F6070318F70AFF30F7077708803A69
:100FDA00FF0080307F02031DF42F01307602031CCC
:100FEA00F72FF82FE42F83120313881108008301C7
:060FFA000A128A11BB2E51
:02400E00723FFF
:00000001FF

CD6 Video
https://www.youtube.com/watch?v=Ca4xXy9qB1o
Webpage
https://circuitdigest.com/microcontroller-projects/16x2-lcd-interfacing-with-pic-microcontroller

The Lcd is flashing a little bit, it gets reloaded every few seconds or so but maybe it should be like that. Anyway, this chapter went very fast and smooth so that's positive to try some more.  Very Happy

https://github.com/Alectus/Dump-sharing/blob/main/CD6-16F877A-LCD.simu

Not sure if the Hex comes together with the Simu, so I put it in the code above.

arcachofo likes this post

7My first MPLabX Empty Re: My first MPLabX Mon Apr 19, 2021 9:36 am

Mistral



arcachofo wrote:PNP not working solved in Rev 155.
Thank you, I use them often, like here

My first MPLabX Cd5b-110

I found the page where the CD-pic-projects are shown in order
https://circuitdigest.com/pic-microcontroller-projects?page=5
This is about a car battery voltage meter with Pnp's in the schematic
https://circuitdigest.com/microcontroller-projects/car-battery-voltage-monitoring-using-pic
Lots of troubles again and only partly solved. It started with this code at about line 102
void interrupt low_priority LowIsr(void)
after many shuffles and build errors and reopenings of the project it finally catched with this replacement
void __interrupt(low_priority) LowIsr(void)
Then I had to find the right display to connect to the right pin and it can only go up to about 9.77V and then the displays overflow and get mixed up again while in the original it can meassure up to 15V but I'm fine with this outcome because that issue most likely has more to do with the coding and I have no idea what effect my changes in the line above have had. 
And don't worry, I am not going to post every sim I make. This is a different chip, the 18F2520 and the MR is working  Wink 
I've opened a new GitHub that contains the simu- and the hex-file(s) for this and coming circuits.
https://github.com/Alectus/uChip-controller-simulations

Edit: A tip for other beginners, this circuit uses multiplexing. In the original schematic it is straight forward but in this sim the displays were mixed up. To see what is going on reduce the simulation speed to about 0.5%, you will find its properties with a right-click in the central panel, that is the drawing area.

8My first MPLabX Empty Re: My first MPLabX Wed Apr 21, 2021 12:04 am

Mistral



A way to go around the 'only 1 Mcu' rule

My first MPLabX Cd8-1610

Multiple projects can now fit in one file. It's a counter, I made it faster like a stopwatch.
It's called CD8. Simu and Hex are here
https://github.com/Alectus/uChip-controller-simulations
Original
https://circuitdigest.com/microcontroller-projects/7-segment-display-interfacing-with-pic16f877a
This is the second time I had to use inverters(?) but at least the displays are not mixed up.

Update IC-socket component   Wink

My first MPLabX Cd9-1010

I received a message from the XC8 compiler. It said it didn't like my project path name and it could give problem. So instead of CD10-Pwm I now use a underscore like CD10_Pwm.
CD9&10 compiled at once so maybe it helped. Hex-files are on the Git.



Last edited by Mistral on Wed Apr 21, 2021 7:34 pm; edited 4 times in total (Reason for editing : Update)

9My first MPLabX Empty Re: My first MPLabX Thu Apr 29, 2021 10:25 am

Mistral



Today I finished no.20 in the Circuit Digest Pic Projects, it's called Interrupts.
https://circuitdigest.com/pic-microcontroller-projects?page=3
One thing to notice for people who want to start programming, the codes with interrupt do not compile unless this change has been made:
 
/****Interrupt function ****/
// void interrupt ISR_example() THIS LINE IS NOT WORKING ANYMORE - OLD SYNTAX
void __interrupt () ISR_example() // NEW SYNTAX WORKING
https://www.microchip.com/forums/m/tm.aspx?m=1058706

I myself do not program and only know little about it.
Sometimes CD adds a hex-file in their projects but many times they do not and for my own comfort I have put them in a new folder from now on.
https://github.com/Alectus/uChip-controller-simulations

Two pictures

My first MPLabX Cd20_i10

My first MPLabX Cd_9_u10

Simu-file
https://github.com/Alectus/uChip-controller-simulations/blob/main/CD%209%20%20until%2020.simu

A few projects are difficult and perhaps impossible to simulate, for example Bluetooth, Infrared remote and Esp. Another one I did not manage to compile it.

edit: Another case of old syntax - ''unknown type name bit''.
change bit to __bit and it will build.
https://www.microchip.com/forums/m1088415.aspx

10My first MPLabX Empty Re: My first MPLabX Thu Apr 29, 2021 2:49 pm

Mistral



11My first MPLabX Empty Re: My first MPLabX Tue May 04, 2021 11:18 pm

Mistral



CD 21 until 33
21 starts here, it's called GSM 
https://circuitdigest.com/pic-microcontroller-projects?page=3
33 ends here, it's called alarm clock
https://circuitdigest.com/pic-microcontroller-projects?page=2

Examples that are difficult (or impossible(?)) to simulate are 21-Gsm, 25-Gps, 
27-Thermo module DS18B20,  30-I2C.

CD31 and 33 also use I2C and a DS3231 RTC but I managed to trick it a little bit with clock signals on the SDA SCL 16F877A chip pins so at least the LCD is responding.

A little bit more details are in the simu-file
https://github.com/Alectus/uChip-controller-simulations/blob/main/CD%2021%20until%2033_.simu
Much more details are in the original Circuit Digest webpages.

Hex-files, CD25 is not there because I couldn't get it compiled.
https://github.com/Alectus/uChip-controller-simulations/tree/main/MPLAB_CD_HexFiles
Picture
https://raw.githubusercontent.com/Alectus/uChip-controller-simulations/main/CD%2021%20until%2033_.PNG

My first MPLabX Cd_21_10

12My first MPLabX Empty Re: My first MPLabX Tue May 11, 2021 7:15 pm

Mistral



Challenge:


Simulating a RFID card reader. Perhaps it can be done but it might take some code adjustments and a well designed input signal. Tried it but unsuccesfull  My first MPLabX 1f610 

My first MPLabX Rfid_r10

Orignal is here:
https://circuitdigest.com/microcontroller-projects/rfid-interfacing-with-pic-microcontroller-pic16f877a
Header files Eusart1.h and Lcd.h are in this zip-project at bottom of page, just above video.
https://circuitdigest.com/microcontroller-projects/gps-interfacing-with-pic16f877a
Took me already 1.5 hour to melt it together and compile.
This is not a request for help, maybe somebody wants to try it, that's all.  Wink

13My first MPLabX Empty Re: My first MPLabX Thu May 13, 2021 2:49 pm

Mistral



I am not much of a programmer, sometimes I have to make some changes and if it succeeds it's not knowledge but trial and error. Lots of trial and errors. For example, I get message ' unknown type name 'bit' ', than I change the line bit status=0; to int status=0; and when I am lucky it Build Succeeds, which it did. By the way, this builds too:
__bit status=0; That is probably better to do. (in lcd.c)

I found something that might be of interest for readers who want to do the Circuit Digest Pic-examples, in real or simulated. There are about 53 of them:
https://circuitdigest.com/pic-microcontroller-projects
and I noticed they wrote their own Lcd.h and Lcd.c files. You can also find them if you type lcd.h in search.

Problem is, going from example 1 untill the end these files change somewhat. Among example 1 to 53 sometimes there are zip-files to download a complete project, the mentioned files are included in that and if you compare them you will see what I mean.

At the moment I am doing example 34 Keypad until example 53, the last one. 
https://circuitdigest.com/microcontroller-projects/4x4-keypad-interfacing-with-pic16f877a
The article contains a zip, the link is just above the code.

What I noticed is that since this keypad example, all the next examples that make use of the HD44780, the second line never appears anymore on the screen. Searching and trying I found that this address needs to be changed:

#define LineTwo 0xC0
into
#define LineTwo 0xA8

That line is in lcd.c and in main.c there is a simular line(s) to be changed.

I would like to ask a question if it does not take too much time to answer.

Why is it that this address needs to be changed? Is it in the simulator, do they use another LCD at Circuit Digest or is it something else?  Thanks in advance.

Keypad is working now  Wink

My first MPLabX Keypad11

Code:
:100000000A128A11F82F00308A000408840A820735
:10001000003432346E34643420344C3469346E34F9
:100020006534203441346434643472346534733458
:0400300073340034F1
:10097400831203138601F0308316031386007F303D
:10098400F0007008810508008316031388010A1219
:100994008A11C3250A128A110A128A11BA240A1268
:1009A4008A110800F800013083120313A0000030FC
:1009B400A100081478080A128A1171250A128A11F2
:1009C40008006E30F3007308F400F02C0A128A1148
:1009D40054260A128A11F3007308F4006E30740668
:1009E4000319F52CF62CE82C74080800F400831283
:1009F4000313081088107408880008152C30F000C0
:100A04000130F1000A128A110D250A128A1183128B
:100A1400031308110800F201F301F201F301182D88
:100A24000130F2070318F30A0030F3077108730268
:100A3400031D1E2D70087202031C212D222D122D60
:100A44000800FB00F901FA013A2D79087B078400BC
:100A54000A128A1103200A128A110A128A11D42452
:100A64000A128A110130F9070318FA0A0030FA074A
:100A740079087B0784000A128A1103200A128A115A
:100A8400003A031D462D472D272D08000A128A110E
:100A9400C6240A128A1180300A128A1171250A1298
:100AA4008A1101300A128A1123250A128A11A830E8
:100AB4000A128A1171250A128A110A128A11E32470
:100AC4000A128A11FC007C08FD007D080A128A11B2
:100AD400D4240A128A115F2D0A128A110028F60002
:100AE40083120313200821040319792D7A2D7D2DF7
:100AF400A001A1017E2D081088107608F400740866
:100B0400F700F030F4007408F7050F30F4007408AF
:100B140088057708F4007408880408152C30F00060
:100B24000130F1000A128A110D250A128A1183126A
:100B3400031308117608F40003300310F40DFF3E8C
:100B4400031D9F2D0310740DF5007508F700F03098
:100B5400F4007408F7050F30F4007408880577086A
:100B6400F4007408880408152C30F0000130F100FA
:100B74000A128A110D250A128A118312031308110D
:100B840008002C30F0000130F1000A128A110D2502
:100B94000A128A1130300A128A11F8240A128A11B0
:100BA4002C30F0000130F1000A128A110D250A12CE
:100BB4008A1130300A128A11F8240A128A112C3050
:100BC400F0000130F1000A128A110D250A128A116F
:100BD40030300A128A11F8240A128A112C30F000DB
:100BE4000130F1000A128A110D250A128A112030EF
:0C0BF4000A128A11F8240A128A112C300F
:100C0000F0000130F1000A128A110D250A128A1132
:100C10000C300A128A1171250A128A112C30F00048
:100C20000130F1000A128A110D250A128A110430CE
:100C30000A128A1171250A128A112C30F000013033
:100C4000F1000A128A110D250A128A1185300A1242
:100C50008A1171250A128A112C30F0000130F1003E
:100C60000A128A110D250A128A1106300A128A11F7
:100C700071250A128A112C30F0000130F1000A129D
:100C80008A110D250A128A1101300A128A11712562
:100C90000A128A112C30F0000130F1000A128A1178
:100CA0000D250A128A1108008312031306108614F8
:100CB00006158615061A5D2E5E2E732E1A30F2006A
:100CC0005E30F1006E30F000F00B642EF10B642EFC
:100CD000F20B642E000083120313061E702E712E79
:100CE0006B2E3130F72F861A762E772E8C2E1A30F7
:100CF000F2005E30F1006E30F000F00B7D2EF10B53
:100D00007D2EF20B7D2E000083120313861E892E8A
:100D10008A2E842E3230F72F061B8F2E902EA52E72
:100D20001A30F2005E30F1006E30F000F00B962EBB
:100D3000F10B962EF20B962E000083120313061F62
:100D4000A22EA32E9D2E3330F72F861BA82EA92E60
:100D5000BE2E1A30F2005E30F1006E30F000F00B63
:100D6000AF2EF10BAF2EF20BAF2E00008312031348
:100D7000861FBB2EBC2EB62E4130F72F06148610D0
:100D800006158615061AC52EC62EDB2E1A30F20061
:100D90005E30F1006E30F000F00BCC2EF10BCC2E5B
:100DA000F20BCC2E000083120313061ED82ED92E70
:100DB000D32E3430F72F861ADE2EDF2EF42E1A3083
:100DC000F2005E30F1006E30F000F00BE52EF10B1A
:100DD000E52EF20BE52E000083120313861EF12E82
:100DE000F22EEC2E3530F72F061BF72EF82E0D2F96
:100DF0001A30F2005E30F1006E30F000F00BFE2E83
:100E0000F10BFE2EF20BFE2E000083120313061FC1
:100E10000A2F0B2F052F3630F72F861B102F112F7F
:100E2000262F1A30F2005E30F1006E30F000F00B29
:100E3000172FF10B172FF20B172F0000831203133C
:100E4000861F232F242F1E2F4230F72F06148614BF
:100E500006118615061A2D2F2E2F432F1A30F20059
:100E60005E30F1006E30F000F00B342FF10B342FB8
:100E7000F20B342F000083120313061E402F412F64
:100E80003B2F3730F72F861A462F472F5C2F1A300B
:100E9000F2005E30F1006E30F000F00B4D2FF10BE0
:100EA0004D2FF20B4D2F000083120313861E592F76
:100EB0005A2F542F3830F72F061B5F2F602F752FB6
:100EC0001A30F2005E30F1006E30F000F00B662F49
:100ED000F10B662FF20B662F000083120313061F1F
:100EE000722F732F6D2F3930F72F861B782F792FA4
:100EF0008E2F1A30F2005E30F1006E30F000F00BF1
:100F00007F2FF10B7F2FF20B7F2F00008312031333
:100F1000861F8B2F8C2F862F4330F72F06148614B5
:100F200006158611061A952F962FAB2F1A30F20050
:100F30005E30F1006E30F000F00B9C2FF10B9C2F17
:100F4000F20B9C2F000083120313061EA82FA92F5B
:100F5000A32F2A30F72F861AAE2FAF2FC42F1A30A7
:100F6000F2005E30F1006E30F000F00BB52FF10BA7
:100F7000B52FF20BB52F000083120313861EC12F6D
:100F8000C22FBC2F3030F72F061BC72FC82FDD2FE5
:100F90001A30F2005E30F1006E30F000F00BCE2F10
:100FA000F10BCE2FF20BCE2F000083120313061F7E
:100FB000DA2FDB2FD52F2330F72F861BE02FE12FE1
:100FC000F62F1A30F2005E30F1006E30F000F00BB8
:100FD000E72FF10BE72FF20BE72F0000831203132B
:100FE000861FF32FF42FEE2F4430F72F6E300800BA
:100FF00083120313A001A10183010A128A11482D53
:02400E007A3FF7
:00000001FF


++++++++++++++++++++
**************************

I solved my own challenge from the previous post, sort of.

My first MPLabX Rfid_r11

I used a shift register to get an irregular input signal at around 125 kHz, the frequency where this RFID is supposed to operate with, but with only a generator as input signal it works as well. Since the LCD's second line is working more examples can be simulated.

My first MPLabX Heart_10

14My first MPLabX Empty Re: My first MPLabX Fri May 14, 2021 9:20 am

Mistral



Almost reaching the end of this pic-project ..
Sometimes it is not so easy to get a signal on the display and if it does than the next step is to get a value displayed. For example this one, you have to put around 20 kHz or else you don't get the Temp and Humidity to see. Tried to create a data stream with a counter and multiplexer but the values stay 00.

https://circuitdigest.com/microcontroller-projects/interfacing-dht11-sensor-with-pic16f877a-microcontroller

My first MPLabX Dht1110



This one needs to be set in order or else not working. First it needs to calibrate and get a Ohm value. That only happens between about 0 and 2 Volt on pin A0. Than it needs to detect gas, which is the sensor on/off button and than the Ohms on A0 need to change, somewhere between 1.5 and 2.5 Volt to get a ppm value.

My first MPLabX Cd50_g10

It helps to read the article and the code good to get an impression of what should happen but often it is just trying and hoping for luck some values will appear. And that is only the simulation part, most of the time went to getting the programs compiled. Scattered header files and the like is common practice among these examples. Anyway, writing the programs is much harder so I have respect for that.

https://circuitdigest.com/microcontroller-projects/gas-detection-and-ppm-measurement-using-pic-microcontroller-and-mq-gas-sensor

The supporing files turn out to be here:

https://circuitdigest.com/microcontroller-projects/heartbeat-monitoring-using-pic-microcontroller-and-pulse-sensor

When finished I'll put the hex-files on Github, just three more to go.  rabbit

15My first MPLabX Empty Re: My first MPLabX Fri May 14, 2021 12:58 pm

Mistral



Examples 51 to 53 are a bit too difficult for me to simulate, also again there is no zip-file to download, except in the last one, and they use some pic-micro's that are not avaible. No.51 is about IR, 52 SD Card and 53 Wireless.
So this concludes this MPLabX-Pic-CD project.  Wink

picture:
https://raw.githubusercontent.com/Alectus/uChip-controller-simulations/main/CD%2034%20-%2053%20completed.PNG
simu-file
https://github.com/Alectus/uChip-controller-simulations/blob/main/CD%2034%20until%2053%20completed.simu
hex-files
https://github.com/Alectus/uChip-controller-simulations/tree/main/CD34_50_Hex_Files
Source - counting down, no. 53 is at the top:
https://circuitdigest.com/pic-microcontroller-projects

My first MPLabX Cd_34_10

16My first MPLabX Empty Re: My first MPLabX Sat May 15, 2021 12:14 am

arcachofo

arcachofo

#define LineTwo 0xC0
into
#define LineTwo 0xA8

That line is in lcd.c and in main.c there is a simular line(s) to be changed.

I would like to ask a question if it does not take too much time to answer.

Why is it that this address needs to be changed? Is it in the simulator, do they use another LCD at Circuit Digest or is it something else? Thanks in advance.
Check if both displays are exactly the same and use the same in simulide.
There are many displays based on HD44780: 1, 2 or 4 lines, 16 or 20 (or other) characters per line...

17My first MPLabX Empty Re: My first MPLabX Sun May 16, 2021 10:51 am

Mistral



Thank you arcachofo, I am doing the last examples of Avr now and the Lcd is in there so I will have a look how that goes. 
https://circuitdigest.com/avr-microcontroller-projects
After that I am not sure what to do next, perhaps the MyNor.

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum