I have an arduino setup with LCD, RTC, EEPROM, Reed Switch, AC/DC Buck Converter, 4X4 Keypad.
What PIC IC will let me connect with all these(40 Pins), and yet accept Arduino Code.
I don't want to rewrite the code. I learn Arduino only recently, So shifting to another coding language is near impossible, since am not a coder.
To my knowledge, no PIC chip will directly accept Arduino C/C++ code. It is a completely different "ecosystem".
On the web there do seem to be a few PIC/Arduino projects for specific PIC chips, but I imagine that the transition would not be simple, and may not even be possible for your project. See Arduino Like IDE for PICs | Microcontroller Tutorials
For PICs in general, you need a special programmer, and use either Microchip's free MPLAB/C compiler, or one of several professional PIC development systems. Those tend to be expensive.
Why do you want to switch?
brvnbld:
I have an arduino setup with LCD, RTC, EEPROM, Reed Switch, AC/DC Buck Converter, 4X4 Keypad.
What PIC IC will let me connect with all these(40 Pins), and yet accept Arduino Code.
I don't want to rewrite the code. I learn Arduino only recently, So shifting to another coding language is near impossible, since am not a coder.
Why do you want to shift to PIC?
Tom.... ![]()
The UECIDE supports programming several MCU types including some of the PIC family. chipKIT boards are "Arduino Inspired" so the language is pretty similar to normal Arduino but I don't think you will be able to port your code without some form of modification.
I use both PICs and Arduino and related products. For PIC you need MPLABX and the appropriate compiler tool-chain for the PIC you are using. There are C compilers for 8, 16 and 32 bit PICs, you need the correct one for the PIC you are using. Note that these are C not C++ compilers so if you have any code that uses classes then you need to re-write C code to do what the classes did. I would expect any Arduno code that does not use classes to be OK in C. However, you also need to be aware of the many functions that come embedded in the Arduino IDE to make things simple for beginners, for example pinMode(), there's no such thing in MPLABX you have to understand how the registers work and configure them directly.
You also need a programmer, the current programmer is PICkit4
My most 'obsessive' project runs on a 32 bit PIC with an ESP8266 board added to provide WiFi connectivity, with the ESP software developed in the Arduino IDE and the PIC software in MPLABX.
Note that Microchip recognise that as producers of the PIC range and of ATMEL products they need to integrate both into one single IDE. PICkit 4 supports SAM devices but not, so far as I know, AVR. I expect that before long they will have a single product that supports all devices they make.
While I personally would answer a PIC related question on here if I happened to notice it this isn't really the place as this is for Arduino and Arduino related kit.
TomGeorge:
Why do you want to shift to PIC?
Tom....
Obviously I cannot answer for the OP but as someone who uses both I like Arduino for the libraries that allow me to do things I would not have a clue how to do using a PIC, for example easy ways to use WiFi. I like PIC for the wide choice of processors each with a slightly different peripheral set so I am not restricted to what someone thought would be a good choice for a particular board.