There is and will be lots of potential apps where PIC talks to sensors or
uses its internal ADC/FVR and ESP 8266 acts as the wireless hub.

Even for Raspberry Pi, PIC can act as a peripheral for collection of
data/adc etc. Having a boot loader on PIC, eg 12f1840 will let it
programmed without a physical programmer.
I have found that https://sourceforge.net/projects/tinypicbootload/ is
pretty good.

Kind regards,
Sunish



On Thu, Feb 7, 2019 at 11:13 PM Rob Jansen <[email protected]> wrote:

> Hi John,
>
> Makes sense and I heard indeed about the fact that you should not use it
> for time critical operations. With the esp8266 JAL library I am making the
> ESP module available for people that are using a PIC and do not want to
> invest in learning another controller and/or another programming language.
> But as you mentioned, it is cheaper to use your approach if you do.
>
> Thanks for the clarification.
>
> Kind regards,
>
> Rob
>
>
>
>
> On Thursday, February 7, 2019 at 12:53:04 AM UTC+1, PuceBaboon wrote:
>>
>>
>>    Sorry Rob.  What I meant by doing the opposite was that the ESP is a
>> cheap, powerful 32-bit microcontroller and, as Sunish says, once you start
>> using it, it becomes obvious that it's the only thing you need to quickly
>> and easily implement some IoT projects.  So many (most!) of my recent
>> projects have been based on the ESP alone.
>>
>>    It doesn't handle real-time applications very well, though (unless you
>> strip out the WiFi stack completely) and also has abysmal quiescent current
>> and sleep capabilities (much worse than any PIC), so despite the low cost,
>> it's not a universal solution.  So what I'm doing is the opposite in that
>> I'm now using the ESP as the main microcontroller, but off-loading
>> peripheral tasks to a PIC.
>>
>>    An example would be a remote irrigation project I'm working on at the
>> moment where I have a couple of flow sensors producing several hundred
>> output pulses per second.  This is more than the ESP can handle (and
>> greater accuracy than I need for this application), so I have a 12F1840 to
>> handle the interrupts from each sensor and then each 1840 talks to the ESP
>> via i2c, with a shared interrupt line so that the 1840s can request
>> attention when needed (that's the master plan anyway ...it isn't actually
>> working yet).
>>
>>    Hope that makes more sense,
>>
>>                              -John-
>>
>>
>> On Tuesday, 5 February 2019 02:42:28 UTC+9, Rob Jansen wrote:
>>>
>>> Hi all,
>>>
>>> Some comments. Yes you need a special board as to be able to the ESP
>>> easily connect to it. You also need level shifters 3.3 V <--> 5V if your
>>> PIC runs at 5 Volt since the ESP module only operates at 3.3 Volt.
>>>
>>> The reason for making this library (I will put it soon on GitHub since I
>>> have done sufficient tests for now and it complies with the jallib
>>> standard) is that you can just easily connect your PIC to Wifi. I do not
>>> understand the remark of John doing the opposite but maybe I misread  your
>>> answer. I just connect a PIC to this module so that you do not have to
>>> bother about using the hardware on the ESP and just use the Wifi and do the
>>> rest using the hardware on your PIC.
>>>
>>> About Jaluino. I had a look at the website of Sebastian and he did a
>>> great job but - or I missed it - I would like to take it one step further.
>>> I want to design a  board with 2 PICs on it so that you can program it with
>>> board itself without the need of a programmer. The latter is I think also a
>>> reason that people like Arduino since you just connect it to your USB and
>>> it works. That should be the same for the Jaluino I think. If somebody has
>>> already designed it that would be great.
>>>
>>> So I will post the library soon for anybody who wants to use his PIC to
>>> make an IoT device without the hassle of understanding the AT command set
>>> and/or to find out which commands you need to control the ESP board to get
>>> you connected to the Wifi and to send data over it. You just get a library
>>> with functions that does it all for you.
>>>
>>> Kind regards,
>>>
>>> Rob
>>>
>>>
>>> On Monday, February 4, 2019 at 3:19:40 PM UTC+1, hubidrei wrote:
>>>>
>>>> Why not the easy way?
>>>> I use ESP-Link on the esp to have a Serial WiFi Bridge. So i can
>>>> connect it directly to any Serial port also on a PIC.
>>>> https://github.com/jeelabs/esp-link
>>>>
>>>> Am Samstag, 2. Februar 2019 09:28:36 UTC+1 schrieb Rob Jansen:
>>>>>
>>>>> Hello all,
>>>>>
>>>>> I am working on a JAL library for using the esp8266 wifi module. It is
>>>>> starting to work and I made some sample programs. It is still work in
>>>>> progress and I need to clean up the documentation of the library. Once 
>>>>> done
>>>>> can post it on GitHub but I am wondering if it should be
>>>>> checked/reviewed/tested by somebody to see if is all clear. What is the
>>>>> normal procedure for doing this? Put it on the jallist forum?
>>>>>
>>>>> Kind regards,
>>>>>
>>>>> Rob
>>>>>
>>>>> --
> You received this message because you are subscribed to the Google Groups
> "jallib" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/jallib.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/jallib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to