The forum is now closed for new entries and will remain read only, thank you to everyone who has contributed over the years.by admin - Announcements
look up 'C printf' it follows the same rules except only one variable is allowed. I think it should be "%.2f"by admin - ByPic
Luke, no, sorry ByPic came after the 4629 and so wasn't included in the build. Jimby admin - BV514 & BV4629
It sounds like the wifi signal is weak where the bv4115 is situated. There is also quite a good utility tool here (better than telnet): http://www.byvac.com/index.php/BV4115#options Unzip the file in Method 2 and change the wifiinfo.txt to 192.168.4.1 in your case.by admin - Serial & I2C Devices
That's good it means that everything with the ESP8266 is configured correctly. from the telnet session you can type <enter>+++rr That will reset the BV4115 which it sometimes needs at first switch on. to verify that the relay bit is working type dV<enter> This will return the version firmware da1,1 should switch on relay one and da0,1 will switch it off ** dependiby admin - Serial & I2C Devices
-- Just for information: there are no bugs in wifirelay or the BV4115 firmware -- Your router may be blocking the MAC address from the ESP8266 or the ESP8266 is wrongly configured for your system do the following: open a cmd window and type: telnet 192.168.4.1 80 then type <enter><enter>+++info The <enter> is the enter or return key on the keyboard. What isby admin - Serial & I2C Devices
Do you have a wifi home network? if so what is the IP address of that network?by admin - Serial & I2C Devices
The PIC32 does not have a built in DAC so you have two options. 1) use the built in PWM that is described on this page. 2) use an R2R ladder network, but for 256 steps this will take up 8 pins. There is plenty of information on the net of what an R2R is and how to make one using 8 outputs.by admin - ByPic
Malcolm, there may be other errors but in this code: if p <> 0x0f then break endif the break will have no effect, it should be on the next line thus: if p <> 0x0f then break endif This also applies to case statements which has caught me out before today.by admin - ByPic
Hello, I think you need to be a bit more specific to get an answer to the first question but the answer to the second question is yes thus: function twotimes(value) return value * 2 endf function test() print twotimes(5) endf The first function return two times the value given and the second function prints it out.by admin - ByPic
Bruce, when you define a global variable it then needs to be initialised, you normally do this by having an initialise function so that on reset it can be called. In nearly all programs there needs to be a known starting condition. It is easy to forget that you may have initialised a variable by hand that will not be initialised at start up. In general it is best to avoid global variables andby admin - ByPic
Bruce, Are you using global variables and if so what version (serial) is the MX1 firmware. If it is before 2.08 (Serial 201310020) then there is a bug when using global variables and then saving to flash. This is detailed here.. If this is the case an upgrade is needed, this is free if you get the IC back to me but in your case I will send you another IC as you have made a contribution to theby admin - ByPic
Bruce, just something that may help, if you use: #option only off somewhere in the code then your main() function will overwrite the rookie function without the need to delete the rookie main().by admin - ByPic
Chris, sounds like an interesting project. Hopefully the learning curve should be shallow as any ambiguous situations can be resolved by using the interactive features. I am not sure if it is relevant but the WiFi SD Card “FlashAir” works with the ByPic filing system. The documentation is in two places, for hardware and getting started: http://www.bypic.byvac.com/ Go to the products pageby admin - ByPic
hello, you have done everything correctly but this device needs a very small delay between sending the command and sending the data for that command thus: 1) send start condition with address S 0x21 2) send command (0x1) 3) delay about 50 to 100uS 4) send data for command (0x1) 5) send stop condition P I don't think that you can do this on the PRi as you only have partial control over theby admin - Serial & I2C Devices
machineBASIC is now ByPic with its own web site www.bypic.co.ukby admin - Announcements