Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Giovanni Blu Mitolo
    @gioblu
    check the last point of the SWBB known issues for the level conversion question: https://github.com/gioblu/PJON/tree/master/src/strategies/SoftwareBitBang#known-issues
    Klaus
    @KlausNZ
    Thanks Giovanni. Saw that one before and will try when I get to it. Have still quite a number of megas floating around and I think my "government" would rather have all lights working before trying this. Well, it's two years since we are in the house already...
    Will also report on the success.
    bobcroft
    @bobcroft
    @KlausNZ I have used mixed Uno / Mega and ESP devices linked on the same PJBB bus without problems. When the 3.3 volt devices 'talk' to the 5 volt devices no level shift is needed since 3.3 volt is within the high voltage level of the 5 volt system. I use FET level shifters for the 5 volt signals sent to 3.3 volt devices. I have use the excellent PJON gateway to link wirelessly by MQTT into Node-RED. This gives a phenomenally versatile and flexible system. I do not (knowingly) use interrupts on my devices that use PJON. BTW I love the term "my government" :-).
    modumonster
    @modumonster
    Hey. What do I need to change if I want to run PJON (SoftwareBitBang) on ATTiny84 at internal 8 Mhz instead of external 16 Mhz?
    Jack Anderson
    @jdaandersj
    It's not really a recommended method, you need the stability of a real crystal
    Perhaps it could work with two well calibrated internal oscillators and not much temperature variation but unless there is a big reason to do it, it's probably not worth the time. That's my opinion anyway, maybe others know something else
    modumonster
    @modumonster
    https://github.com/gioblu/PJON/issues/25#issuecomment-269498951
    Thanks, I will try to make it work with the external oscillator. Also - arent there capacitors for the oscillator missing? Or can you make it work without them?
    modumonster
    @modumonster

    Just to tell you all a short story about my amazing mistakes:

    For a college project (programming course) I chose to submit my project I have been working on for some time (mainly breadboard prototypes at home). I was thinking about using PJON, then I switched to I2C.
    I designed PCBs, had them manufactured. I need to finish the project in a month or so.

    I am using ATtiny84 for the slaves. I used different pins than the hardware USI. I said - oh its no problem, I will use software I2C. Then the boards come and after some time I find out that software I2C for ATtiny is no problem, if I am using it as a master. But for software I2C as a slave - that is pretty much impossible.

    So now I am here. Trying to use SoftwareBitbang once again. I think I will stick to it and make a new revision with external oscillators. But I dont have time to do that before I need to turn in my code. So probably it will be some botch job with oscillators.

    Fun times :D

    Jack Anderson
    @electronvolt:matrix.org
    [m]
    Depending on how much CPU time the attiny needs to spend doing other things, could you not use a pin state transition interrupt on the SCL to make sure the slave is ready to receive commands?
    michcfr
    @michcfr
    Hello, just to know, does anyone plan, or did, port PJON to the RP2040? Thx
    Klaus
    @KlausNZ
    Hi @gioblu
    I saw last night you were approaching the Tasmota team to have PJON implemented as a protocol.
    Therefore, I was looking into Tasmota I'm curious about if there was any more progress or maybe someone else did some work on this.
    Fred Larsen
    @fredilarsen
    @KlausNZ Giovanni is very probably a busy bee with real-life-problems at the moment, he has just moved. Unfortunately I am unable to answer your Tasmota question.
    Klaus
    @KlausNZ
    Hey @fredilarsen
    Thanks for the heads up. I thought he might be busy. The question is not urgent anyway.
    I know what moving involves. At least here in New Zealand. (And moving from Europe to the other side of the world).
    How are you doing?
    Fred Larsen
    @fredilarsen
    @KlausNZ I am fine, thank you. Also busy with practical sides of life (family, house, garden, ...), and learning to master 3D printing on the little free time left -- nearly there except for some PETG imperfections. Getting ready to return to PJON/ModuleInterface to make a few new planned arduino modules for my home automation. For me the PJON-MQTT bridge opened up for connecting my PJON based automation with higher level automation using Home Assistant. Great to be able to let an arduino module trigger unlocking the charging cable of my car when the garage door is opened and the plug is not in the wall holder, for example. I am also curious to see the new "Matter" protocol that is trying to unite all home automation, hopefully they will release API+examples in C++, not only in interpreted languages like Python, C# or Java. Could then add a PJON strategy and bridge.
    Tristan
    @Mirodin
    I am happy to hear you find use in my requested MQTT feature @fredilarsen :)
    We moved a couple of months ago, too and I am finally starting rebuilding my tiny MI setup I had when we moved. Hope I can expand it substantially in the near future since it has not failed me since setup.
    Fred Larsen
    @fredilarsen
    @Mirodin Happy to hear it. My system is completely stable (including SWBB, DualUDP, MQTT, MI and HTTP connections with MI master on Windows) and PJON/MI is for me feature complete so nothing much happens in the repos, but I have a few ideas that I will come to at some point. I had it all running for 190 days when I got too scared and turned off all electricity during a close-by lightning storm recently.
    Fedor Shabliy
    @fedors_gitlab
    @gioblu @fredilarsen
    Hi guys!
    Is everything okay with the PJON project?
    You have not paid for https://www.pjon.org/, there is no activity on the gitlab, here in the chat. We are starting to worry about you.
    Fred Larsen
    @fredilarsen
    Hi @fedors_gitlab. We are both well. Giovanni is moving and has his life full of real-life activities at the moment. I myself have had to focus on family and other projects for a while. I work on and off with my home automation system using PJON and my own ModuleInterface repo, and although they both are pretty feature complete for my needs and working completely stable, I will maintain the repos and hopefully add some new features in the future. So the activity will surely drop from what is has been for the last few years -- Giovanni has worked on PJON nearly full time for years, and I too have spent hours every day working together having fun developing, but that got me some marital conflicts so I will have to divide my time somewhat differently. I hope Giovanni also will find the time to continue on a hobby basis, as we have had lots of fun building these projects. I do check this chat regularly.
    Fedor Shabliy
    @fedors_gitlab

    Huh. Fred, thank you so much for taking the time to respond.

    For myself I have built a large planting control system for my plant fertilizer developments. I use pjon and several communication protocols rs485, hc-12 RF, esp-now. And I have several dozen friends who have learned about pjon from me and are actively using it in their amateur projects.

    We are very concerned about your wonderful project.
    Good luck, you guys! Time is of the essence, it's short today and no one knows for sure tomorrow!

    Fred Larsen
    @fredilarsen
    @fedors_gitlab Thanks for the concern. I feel like we built a house and are now living in it :-) Nothing ever gets completed but I feel the latest PJON version is a good product that can be used without having to be changed continuously. I hope Giovanni will find time for PJON in his life again when things settle after the move.
    Giovanni Blu Mitolo
    @gioblu
    ciao @fedors_gitlab thank you for your compliments, I am more or less here, although I am restoring a house and planning to move 1000km south : )
    thank you for sharing.
    bobcroft
    @bobcroft
    @fredilarsen @gioblu I would like to add my thanks for the two great projects and to offer my best wishes for your future happiness as life progresses. For my part I agree with Fred that both projects are stable, reliable and do not need significant further development. The PJON book is certainly a good investment and I will continue to recommend PJON when ever the opportunity arises.
    sticilface
    @sticilface
    Question. Trying to work out the maximum message length you can send which does not appear to be simple. PJON_PACKET_MAX_LENGTH must include overhead which is set by bus as well as packet factors. i've used this formula PJON_PACKET_MAX_LENGTH - PJONTools::packet_overhead(bus.config) which for default config is 50 - 6, giving a msg length of 44. However I get packet length errors over a message length of 40.
    rassaifred
    @rassaifred
    @gioblu Hi Giovanni think you so much for you time in this great project, just i have a question, are you use PJON in your your life work? have you a revenue from using PJON in your work?
    Fred Larsen
    @fredilarsen
    @rassaifred FYI: Giovanni is super busy moving plus renovating / touching up both the old and new place.
    Giovanni Blu Mitolo
    @gioblu
    Ciao @sticilface I have some time and I will now dig into the overhead issue you have noticed
    ciao @rassaifred I have developed PJON as an experiment, with the help of @fredilarsen and many others. I have learned a lot in the process, and now work in the field of IT. I do not use pjon in my life work nor I have had revenue from it, it costed a lot of money and time.
    sticilface
    @sticilface
    @gioblu cool beans thank you. Also sent you a beta of the pjon I2C implementation:)
    Tristan
    @Mirodin
    Hi @gioblu, hope your move comes along nicely :)
    I figured it is about time for another donation round so I was wondering if this link is still correct: https://www.paypal.me/PJON
    Giovanni Blu Mitolo
    @gioblu
    ciao @Mirodin is a pleasure to hear from you
    all fine, I am still learning how to keep the fireplace on but life out of the city is nice
    yes, the link is still active for donations, thank you for your support :)
    I have taken a break from development since a while, I hope to be back soon after the resettlement process is finished.
    Tristan
    @Mirodin
    Ah, I love fireplaces. Some primeval instinct always lures me there when I see one.
    Looking forward to see you return to the active site of PJON. Stay safe ;)
    Giovanni Blu Mitolo
    @gioblu
    Yes, I also get hypnotised and loose a lot of time staring at it recently :)
    thank you very much for your donation :)
    I hope you are well, how it is going there?
    Tristan
    @Mirodin
    Well we jump from lockdown to lockdown so nothing new I guess
    Giovanni Blu Mitolo
    @gioblu
    we lived 2 years of collective hysteria here, courts are investigating the healthcare minister and its actions during the pandemic, probably soon excrements will bubble up to the surface.
    Giovanni Blu Mitolo
    @gioblu
    I must say it is very cool to be a very small community :) I am back. Sorry for being vacant for a while. Thank you for urging me to continue.
    Tristan
    @Mirodin
    :)
    TunerMod
    @TunerMod
    @michcfr I noticed your question from July 29th about porting PJON to the RP2040 (but I don't see any replies). I too am interested in running PJON on an RP2040, such as the Pi Pico and the Arduino Nano RP2040 Connect. I am particularly interested in ThroughSerial and SoftwareBitBang. However, I am just getting started on learning about PJON - and, while I once did a fair amount of work in C++, I really haven't touched it much since about 1998 or 1999, other than some simple work with Arduino sketches. I'm wondering whether there may be a good resource with information about porting PJON to other platforms. I see that there are other Cortex M0-based platforms that have been ported, such as SAMD (and maybe also one of the Teensy boards), and so maybe those would be good starting points.
    michcfr
    @michcfr
    @TunerMod I finally gave up with PJON for the same reason as yours. I have rather used the classical UART protocol adapted to do multi-master UART over a single (short) wire in a CAN style protocol.
    2 replies
    Giovanni Blu Mitolo
    @gioblu
    Ciao @kasparsd thank you for the donation
    SoftwareBitBang may be a solution if the target you plan to use is supported
    thank you very much for your donation, I will use it for the domain/server expenses of the next year.
    :)
    Porting SWBB to unsupported targets may be a little tricky, being blocking and software emulated, specially in RTOS envs