Hi,
I am using cretile kit to build a project via MITApp.... But the data is not sent to cretile. Both are connected to same wifi.... Rechecked the code.... But still it doesnt get connected to cretile. Can anyone help?
Welcome Priya.
This tutorial may help you with Cretile and App Inventor.
Thank you. Will go through it.
Hi,
I am using Netlogic in cretile kit and MITAPPinventer. Earlier prologic was connected using USB-OTG. Now Prologic is replaced with Netlogic. So how do I make the app control a smart device through Netlogic using IOT..... Help me out..... I can share the code details.
This is what an ai says
Replacing the Prologic module with the NetLogic module in your Cretile kit changes the communication method from wired (USB-OTG) to wireless (likely Bluetooth/Wi-Fi), as NetLogic is designed for IoT and wireless control.
Here is the step-by-step process to transition from Prologic to NetLogic in MIT App Inventor and make your smart device controllable:
- Hardware Setup (NetLogic)
- Power On: Connect power to the NetLogic block.
- Connection Method: Unlike Prologic, which requires a physical USB-OTG cable, NetLogic communicates wirelessly (Bluetooth 5.0 or Wi-Fi). Ensure your Android phone has Bluetooth turned on.
- Pairing: Search for new Bluetooth devices in your phone's settings and pair with the NetLogic module.
- Update the MIT App Inventor Project
You need to change the communication component from "Serial" (used for USB) to "Bluetooth" (used for Wireless).
- Remove Old Components: In the MIT App Inventor Designer view, delete the
Serialcomponent or any USB-related extension used for the Prologic. - Add Bluetooth Client: From the Connectivity palette, drag a
BluetoothClientcomponent onto your screen. - Add Bluetooth Selector: Drag a
ListPickerbutton. Set its text to "Connect Device" or "Scan". - Update Blocks (Logic):
- Populate List: On the
BeforePickingevent for the ListPicker, set itsElementstoBluetoothClient1.AddressesAndNames. - Connect: On the
AfterPickingevent for the ListPicker, setBluetoothClient1.ConnecttoListPicker1.Selection. - Send Command: To control a smart device (e.g., turn on a light), use
BluetoothClient1.SendTextorSendByteswhen a button is clicked in your app.
- Install Required Software
- Cretile Service App: You must install the
CretileService.apkon your phone to facilitate IOT communication. - NetLogic USB Driver: Even though you are using it wirelessly for control, you may need the NetLogic USB driver installed on your computer for initial programming via USB.
- Programming NetLogic (Arduino IDE/Ardublock)
You may need to update your Arduino code to listen for Bluetooth commands rather than USB serial commands.
- Ensure the code is configured to read input from the Bluetooth module rather than the USB serial port.
- If using Ardublock, look for Bluetooth/Wireless block components.
- Summary of Differences
| Feature | Prologic | NetLogic |
|---|---|---|
| Connection | USB-OTG Cable | Bluetooth/Wi-Fi |
| App Inventor | Serial Component | BluetoothClient Component |
| Flexibility | Wired (Local) | Wireless (Remote) |
By updating the BluetoothClient in MIT App Inventor and pairing the NetLogic module, your existing control logic should work similarly, but without the physical cable.
Does the ai's advice work?
I have no idea; let us know.