Prerequisites
Before you begin, ensure you have the following installed:- Python 3.11 or 3.13 (recommended versions for compatibility)
- Visual Studio Code (or your preferred code editor)
- pip (Python package manager)
- Git (for cloning the repository)
This guide is optimized for Ubuntu/Linux systems. Windows and macOS users may need to adjust some commands.
Installation
Download the repository
Clone or download the repository from GitHub:Navigate to the project directory:
Install Python and VS Code
Download and install the required software:Python 3.11.14:
- Visit https://www.python.org/
- Download Python 3.11.14 or Python 3.13.x
- Follow the installation instructions for your operating system
- Visit https://code.visualstudio.com/download
- Download and install VS Code for your platform
- Install the Python extension for VS Code
For detailed installation instructions, watch this setup tutorial.
Create a virtual environment (Ubuntu users)
Create and activate a virtual environment:You should see
(.venv) prefix in your terminal prompt, indicating the virtual environment is active.To deactivate later:Install Python dependencies
With your virtual environment activated, install the core dependencies:For AI/ML projects (includes PyTorch with CPU support):For general projects (GUI apps, voice assistants, utilities):
Install only the libraries needed for your specific project to save time and disk space. Check each project’s imports to determine requirements.
Configure API keys (if needed)
Some projects require API keys for external services:Google Gemini API (for AI assistant projects):Google Search API (for search functionality):Google Text-to-Speech (gTTS):
- Visit Google AI Studio
- Generate an API key
- Add it to the project file:
- Obtain a Google Custom Search API key
- Get a Search Engine ID
- Configure in the project:
- No API key required
- Uses: https://translate.google.com/translate_tts
Running your first project
- AI Voice Assistant
- miPOS System
- Custom AI Model
Run the AI assistant with Google Gemini integration:What it does:
- Voice-based AI assistant
- Uses Google Gemini for conversational AI
- Text-to-speech responses with gTTS
- Web search integration
- Intent detection
Make sure you’ve configured your
API_KEY_GEMINI before running this project.Running projects in VS Code
Once you have a project open in Visual Studio Code:- Open the Python file you want to run (e.g.,
inicio.py,asistantkamutini.py) - Press F5 to run the program with debugging
- Or use the terminal:
Some programs open a GUI window, while others run in the terminal. Check the project’s code to understand its interface.
Arduino/Hardware projects
For hardware projects inproyectos hadwere/arduino nano/:
Install Arduino IDE
Download and install the Arduino IDE:
- Visit https://www.arduino.cc/en/software
- Install for your operating system
Understanding AI commands
The AI Creator project includes custom commands for the voice assistant:| Command | Format | Description |
|---|---|---|
| Search | search=[topic] | AI researches a topic on the internet |
| Weather | clma=[location] | AI retrieves weather for a specific location |
| Location | ubicacion=[] | Provides location data to the AI |
investigar(research)clima(weather)conversacion_ai(AI conversation)
Troubleshooting
Module not found error
Module not found error
If you see
ModuleNotFoundError: No module named 'xxx':Ubuntu: Permission denied or system Python errors
Ubuntu: Permission denied or system Python errors
You’re trying to modify system Python packages. Always use a virtual environment:
API key errors
API key errors
If projects fail with API authentication errors:
- Check that you’ve added your API key to the Python file
- Ensure the API key is valid and not expired
- Verify you have internet connectivity
- Check API usage limits/quotas
PyTorch/CUDA issues
PyTorch/CUDA issues
To check if PyTorch detects your GPU:For CPU-only installation:For CUDA 12.1:
Arduino upload failed
Arduino upload failed
Common Arduino issues:
- Wrong port selected: Check Tools > Port and select the correct USB port
- Board not recognized: Install CH340 drivers if using clone boards
- Bootloader issue: Try holding reset while uploading
- Processor mismatch: Verify your Arduino Nano variant (ATmega328P vs ATmega328P Old Bootloader)
Next steps
Now that you’re set up:Explore projects
Browse detailed documentation for each project
API references
Learn about the APIs and libraries used
Hardware guides
Circuit diagrams and hardware setup guides
Development guides
Learn how to set up your development environment
Having issues? Remember that this code is designed for Ubuntu with Python 3.11/3.13. Adjust paths and commands for your operating system.
