tag:blogger.com,1999:blog-8341583612865358041.post2221538648850515622..comments2022-04-09T05:33:35.994-07:00Comments on Bored? Me?: Don't be so wet! ...Anonymoushttp://www.blogger.com/profile/01664722591573665035noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-8341583612865358041.post-71461197423697204722016-01-18T05:56:07.331-08:002016-01-18T05:56:07.331-08:00Any new development so far Sir?Any new development so far Sir?Anonymoushttps://www.blogger.com/profile/10113519101254359644noreply@blogger.comtag:blogger.com,1999:blog-8341583612865358041.post-80451592190358454612016-01-15T04:08:54.926-08:002016-01-15T04:08:54.926-08:00Ok, if I get time at the weekend, I'll read th...Ok, if I get time at the weekend, I'll read the PIC16F887 datasheet and compare it with my code. However, I can't really do much more than that for now. If I can get my hands on a sample of that PIC, I could make sure that SPI works ok, so maybe I'll include one in my next order. In the meantime, you could try getting the PIC to talk to another device using SPI (e.g. an EEPROM like I suggested before) just to make sure that all is well. You could even check with a logic analyser if you have one.<br /><br />I'll reply again after the weekend if I have anything that might help - let me know if you get it working though so I don't waste too much time.Anonymoushttps://www.blogger.com/profile/01664722591573665035noreply@blogger.comtag:blogger.com,1999:blog-8341583612865358041.post-57670831774277584732016-01-15T03:04:00.073-08:002016-01-15T03:04:00.073-08:00Don't worry about the last message, i have fig...Don't worry about the last message, i have figured that out from the nRF datasheet. But please can you help me check the code you sent to me if there is anything you are missing out regarding the PIC?(especially the SPI settings). I have tried but i still can figure anything outAnonymoushttps://www.blogger.com/profile/10113519101254359644noreply@blogger.comtag:blogger.com,1999:blog-8341583612865358041.post-48376747911613067202016-01-12T06:38:26.337-08:002016-01-12T06:38:26.337-08:00Thanks so far Sir, I am very close to getting it n...Thanks so far Sir, I am very close to getting it now. I have been making sure that they have aligned configuration. Please (1)how do i set CRC Length of the NRF to 16 Bits instead of 8bits. (2) How to do set the data rate to 1Mbps instead of 250kbps. The raspberry Pi can least communicate with those specs. I found that out by establishing a Pi to Pi connection. ThanksAnonymoushttps://www.blogger.com/profile/10113519101254359644noreply@blogger.comtag:blogger.com,1999:blog-8341583612865358041.post-2795369450608445352016-01-11T07:03:14.110-08:002016-01-11T07:03:14.110-08:00No, they are not in synch.
If you compare the reg...No, they are not in synch.<br /><br />If you compare the register values with my example code in NRF_Setup(), you will see that I use the following different settings:<br /><br />RX_ADDR_P0-1 = 0xE1A3B0D5F1<br />TX_ADDR = 0xE1A3B0D5F1<br />EN_AA = 0x00<br />EN_RXADDR = 0x01<br />RF_CH = 0x4C<br />RF_SETUP = 0x27<br />CONFIG = 0x0B<br /><br />You need to align these by changing either my sending code or your receiving code, but do bear in mind my previous comments - I can't realistically do much to help you here, you could have compared these settings yourself.<br />Anonymoushttps://www.blogger.com/profile/01664722591573665035noreply@blogger.comtag:blogger.com,1999:blog-8341583612865358041.post-28862511300487167412016-01-11T06:02:13.089-08:002016-01-11T06:02:13.089-08:00Thanks, I think it would help to show the Configur...Thanks, I think it would help to show the Configuration settings at my receiving end. <br /><br />pyRF24/examples/pingpair_dyn/<br />================ SPI Configuration ================<br />CSN Pin = CE0 (PI Hardware Driven)<br />CE Pin = Custom GPIO25<br />Clock Speed = 1 Mhz<br />================ NRF Configuration ================<br />STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0<br />RX_ADDR_P0-1 = 0xffffffffff 0xf0f0f0f0e1<br />RX_ADDR_P2-5 = 0xc3 0xc4 0xc5 0xc6<br />TX_ADDR = 0xf0f0f0f0d2<br />RX_PW_P0-6 = 0x20 0x20 0x00 0x00 0x00 0x00<br />EN_AA = 0x3f<br />EN_RXADDR = 0x03<br />RF_CH = 0x4c<br />RF_SETUP = 0x11<br />CONFIG = 0x0e<br />DYNPD/FEATURE = 0x3f 0x04<br />LINUX Data Rate = 1MBPS<br />Model = nRF24L01+<br />CRC Length = 16 bits<br />PA Power = PA_MIN<br />PA Power = <br /> ************ Role Setup *********** <br />Choose a role: Enter 0 for receiver, 1 for transmitter (CTRL+C to exit) <br /><br />With this, do you think they are in synchronism with each other?Anonymoushttps://www.blogger.com/profile/10113519101254359644noreply@blogger.comtag:blogger.com,1999:blog-8341583612865358041.post-4471982839626569732016-01-10T21:50:50.885-08:002016-01-10T21:50:50.885-08:00It's going to be difficult for me to get this ...It's going to be difficult for me to get this working for you without having any of the hardware you're using. There are so many things that need to be checked. Maybe working through this checklist might help:<br /><br />1. Check schematics, make sure you have used the correct pins on PIC and nRF24l01+.<br />2. Check power supplies, you need 3V3 for everything and also need decoupling caps and a 10uF on the RF power pins.<br />3. Make sure SPI works on the PIC by using it to talk to another device first. In my tests, I used a small serial EEPROM and a logic analyser.<br />4. Check the RasPi receiving code and schematic. Are you listening on the same address as the sender? Are the speeds and protocols correct?<br /><br />I know it's not easy, I went through the pain myself, but there's no way you're going to be able to copy/paste some code and get this working without some debugging on your side. Separate the problems, tackle them one by one then put things together.<br /><br />I hope that's helpful - I'm not sure what else I can suggest at the moment.Anonymoushttps://www.blogger.com/profile/01664722591573665035noreply@blogger.comtag:blogger.com,1999:blog-8341583612865358041.post-65678323721117239772016-01-10T12:17:37.539-08:002016-01-10T12:17:37.539-08:00Thanks Roger, I have tried it but didn't work....Thanks Roger, I have tried it but didn't work. I tried going through the PIC datasheet too and a part of it talks about SSPSTAT(SSP Status Register), this i think has not been considered in the code and also the part about setting the SS pin. You can go through the code again and see if there is any way you can still help. I really appreciate..! Anonymoushttps://www.blogger.com/profile/10113519101254359644noreply@blogger.comtag:blogger.com,1999:blog-8341583612865358041.post-17938110653138819422016-01-09T01:43:47.659-08:002016-01-09T01:43:47.659-08:00No problem, I don't have that PIC device here ...No problem, I don't have that PIC device here so I can't test anything and I have not looked at the Pi either, but I've just put together a small example of the sort of code that *should* work on a PIC16F887. Read the comments, pinouts are different and I removed some redundant code to try to make it clearer. I hope it helps - you can download the example from http://www.rmrsystems.co.uk/download/Example.zip<br /><br />Good luck!Anonymoushttps://www.blogger.com/profile/01664722591573665035noreply@blogger.comtag:blogger.com,1999:blog-8341583612865358041.post-78204426443035381342016-01-08T09:42:01.308-08:002016-01-08T09:42:01.308-08:00Thanks Man!@RogerRowland You just saved me. Let me...<br /> <br />Thanks Man!@RogerRowland You just saved me. Let me explain my project to you, I am sure you can help me. I basically want my PIC16F887 to transfer some calculated values to a raspberry Pi.<br /> I already have my Pi set up to receive these values. Going through your project, i figured out the only part i need is the plantMonitorSensor.X since i only need the PIC to just transmit.<br /> Please what changes do i need to make to your main.c to make this work with PIC16F887, I am not too familiar with reading registers but i will.You can illustrate this with a code that simply sends "AB" at intervals. Thanks!Anonymoushttps://www.blogger.com/profile/10113519101254359644noreply@blogger.comtag:blogger.com,1999:blog-8341583612865358041.post-37814463185428726052015-09-08T21:43:08.977-07:002015-09-08T21:43:08.977-07:00Thanks. You need Flash player to see the video - n...Thanks. You need Flash player to see the video - not sure if I can change that but will check. I really like PICs but there's quite a learning curve unless you're either vary familiar with another micro (like Atmel) or maybe have a good C background.Anonymoushttps://www.blogger.com/profile/01664722591573665035noreply@blogger.comtag:blogger.com,1999:blog-8341583612865358041.post-36715865937781716542015-09-08T13:09:47.973-07:002015-09-08T13:09:47.973-07:00Very nice. I cant ser the vid. Dont know why. How ...Very nice. I cant ser the vid. Dont know why. How bad is forma pic, since i al starting whit arduino! oscarhttps://www.blogger.com/profile/07241911372797564736noreply@blogger.com